Remember whether 'Clear private data when quitting' is enabled

This commit is contained in:
Christian Dywan 2010-01-30 22:50:00 +01:00
parent 19a3d68c38
commit cc50c6d58b

View file

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