[Xfce4-commits] <midori:master> Open pages from the trash as foreground tabs

Christian Dywan noreply at xfce.org
Wed Nov 18 20:14:05 CET 2009


Updating branch refs/heads/master
         to 104a2712f8be31977830471056ab223632d80e8e (commit)
       from 83f07d7de9643345a6526c3a35c12284610060b1 (commit)

commit 104a2712f8be31977830471056ab223632d80e8e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Nov 18 20:08:54 2009 +0100

    Open pages from the trash as foreground tabs
    
    This is the same behaviour as Undo close tab shows.

 midori/midori-browser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 8e2b5df..68aa87c 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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);
 }



More information about the Xfce4-commits mailing list