[evolution/wip/webkit2] Bug 753705 - When attaching a file by drag and drop to the composer, file URI gets inserted in the t



commit 42f69f893b2439298ca86af075b1845d46316da4
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Aug 25 13:46:05 2015 +0200

    Bug 753705 - When attaching a file by drag and drop to the composer, file URI gets inserted in the text 
view

 composer/e-msg-composer.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index d5134d2..4ac0137 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1920,7 +1920,11 @@ msg_composer_drag_data_received_cb (GtkWidget *widget,
                                gchar **uris;
 
                                uris = gtk_selection_data_get_uris (selection);
-                               composer->priv->dnd_is_uri = uris != NULL;
+                               /* I don't know what regressed outside of Evo, but
+                                * this is called twice. Firstly with uris set
+                                * following by one with uris not set. */
+                               if (!composer->priv->dnd_is_uri)
+                                       composer->priv->dnd_is_uri = uris != NULL;
                                g_strfreev (uris);
                        }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]