]> spindle.queued.net Git - midori/commitdiff
Allow re-opening closed tabs in private browsing
authorChristian Dywan <christian@twotoasts.de>
Mon, 8 Aug 2011 13:48:58 +0000 (15:48 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 8 Aug 2011 13:48:58 +0000 (15:48 +0200)
midori/main.c

index 22912aa2c8e77f06d672df97e727c5df97e83179..99230d02a5777de790d65022c5d75fcdaddc0ebb 100644 (file)
@@ -2156,6 +2156,10 @@ main (int    argc,
 
         if (private)
         {
+            /* In-memory trash for re-opening closed tabs */
+            trash = katze_array_new (KATZE_TYPE_ITEM);
+            g_object_set (browser, "trash", trash, NULL);
+
             g_object_set (settings,
                           "preferred-languages", "en",
                           "enable-private-browsing", TRUE,