From: Christian Dywan Date: Wed, 18 Nov 2009 19:08:54 +0000 (+0100) Subject: Open pages from the trash as foreground tabs X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=104a2712f8be31977830471056ab223632d80e8e;p=midori Open pages from the trash as foreground tabs This is the same behaviour as Undo close tab shows. --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 8e2b5dfd..68aa87cc 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); }