]> spindle.queued.net Git - midori/commitdiff
Make Open selected URL in New Tab work again
authorChristian Dywan <christian@twotoasts.de>
Sun, 9 Nov 2008 18:51:12 +0000 (19:51 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 9 Nov 2008 18:51:12 +0000 (19:51 +0100)
midori/midori-view.c

index a9d9ac0e6e440f85a3b072522ddadfa7f6b2a336..7738f618859c29ecc8ea46fd2545fed42958319f 100644 (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);
 }