Make Open selected URL in New Tab work again

This commit is contained in:
Christian Dywan 2008-11-09 19:51:12 +01:00
parent 9e79f6ba14
commit 7c63a0b480

View file

@ -768,7 +768,11 @@ static void
midori_web_view_menu_new_tab_activate_cb (GtkWidget* widget,
MidoriView* view)
{
g_signal_emit (view, signals[NEW_TAB], 0, view->link_uri,
gchar* uri = view->link_uri;
if (!uri)
uri = (gchar*)g_object_get_data (G_OBJECT (widget), "uri");
g_signal_emit (view, signals[NEW_TAB], 0, uri,
view->open_tabs_in_the_background);
}