From 7c63a0b4801bb998e24586d291fa3ebb030531a8 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 9 Nov 2008 19:51:12 +0100 Subject: [PATCH] Make Open selected URL in New Tab work again --- midori/midori-view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.39.5