]> spindle.queued.net Git - midori/commitdiff
Open pages from the trash as foreground tabs
authorChristian Dywan <christian@twotoasts.de>
Wed, 18 Nov 2009 19:08:54 +0000 (20:08 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 18 Nov 2009 19:08:54 +0000 (20:08 +0100)
This is the same behaviour as Undo close tab shows.

midori/midori-browser.c

index 8e2b5dfda20204bb9a12da049ee00fad7d8a46d8..68aa87cccd776e7da0ef772628c357ba66925770 100644 (file)
@@ -2718,7 +2718,8 @@ _action_trash_activate_item (GtkAction*     action,
                              KatzeItem*     item,
                              MidoriBrowser* browser)
 {
-    midori_browser_set_current_uri (browser, katze_item_get_uri (item));
+    guint n = midori_browser_add_item (browser, item);
+    midori_browser_set_current_page (browser, n);
     katze_array_remove_item (browser->trash, item);
     _midori_browser_update_actions (browser);
 }