From: Christian Dywan Date: Sun, 9 Nov 2008 18:51:12 +0000 (+0100) Subject: Make Open selected URL in New Tab work again X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c63a0b4801bb998e24586d291fa3ebb030531a8;p=midori Make Open selected URL in New Tab work again --- diff --git a/midori/midori-view.c b/midori/midori-view.c index a9d9ac0e..7738f618 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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); }