]> spindle.queued.net Git - midori/commitdiff
Remember whether 'Clear private data when quitting' is enabled
authorChristian Dywan <christian@twotoasts.de>
Sat, 30 Jan 2010 21:50:00 +0000 (22:50 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 31 Jan 2010 19:41:30 +0000 (20:41 +0100)
midori/midori-browser.c

index 539b1f000a0eb213662cbcd9aeaa94beb5fab48f..2572b3505b348b7fd5a9221a4d88f99618076629 100644 (file)
@@ -4544,7 +4544,10 @@ midori_browser_clear_private_data_response_cb (GtkWidget*     dialog,
         }
 
         if (clear_prefs != saved_prefs)
+        {
+            clear_prefs |= (saved_prefs & MIDORI_CLEAR_ON_QUIT);
             g_object_set (browser->settings, "clear-private-data", clear_prefs, NULL);
+        }
     }
     if (response_id != GTK_RESPONSE_DELETE_EVENT)
         gtk_widget_destroy (dialog);