From e841a0b22395bae0097f89a208c8b5309f77166b Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 12 Sep 2009 22:35:45 -0500 Subject: Bug 594863 - Message body doesn't allow right click pop up menu --- widgets/misc/e-web-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c index a49fd22527..afbe2d9455 100644 --- a/widgets/misc/e-web-view.c +++ b/widgets/misc/e-web-view.c @@ -346,7 +346,7 @@ web_view_button_press_event_cb (EWebView *web_view, uri = e_web_view_extract_uri (web_view, event, frame); - if (uri == NULL || g_str_has_prefix (uri, "##")) { + if (uri != NULL && g_str_has_prefix (uri, "##")) { g_free (uri); return FALSE; } @@ -637,6 +637,9 @@ web_view_popup_event (EWebView *web_view, GdkEventButton *event, const gchar *uri) { + if (uri == NULL) + return FALSE; + e_web_view_set_selected_uri (web_view, uri); e_web_view_show_popup_menu (web_view, event, NULL, NULL); -- cgit