[evolution/gnome-3-16] Bug 746641 - Segfault when trying to "ctrl+x" (cut) selected addressee from CC field in email compos



commit 1282bbc24a66a4c876297886681da77b54700489
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 25 09:14:57 2015 +0100

    Bug 746641 - Segfault when trying to "ctrl+x" (cut) selected addressee from CC field in email composer
    
    Don't try to cut composer content when the view is not focused.

 e-util/e-html-editor-actions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 04f5218..db271fa 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -533,7 +533,7 @@ action_cut_cb (GtkAction *action,
        WebKitDOMRange *range;
 
        if (!gtk_widget_has_focus (GTK_WIDGET (view)))
-               gtk_widget_grab_focus (GTK_WIDGET (view));
+               return;
 
        document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view));
        dom_window = webkit_dom_document_get_default_view (document);


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