Commit 1282bbc2 authored by Tomas Popela's avatar Tomas Popela

Bug 746641 - Segfault when trying to "ctrl+x" (cut) selected addressee from CC...

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.
parent f4b3d4d6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment