Only clear private data when quitting if this is actually set
This commit is contained in:
parent
5cdf5e832b
commit
44f58cb5c9
1 changed files with 20 additions and 17 deletions
|
@ -1948,6 +1948,8 @@ main (int argc,
|
||||||
|
|
||||||
/* Clear data on quit, according to the Clear private data dialog */
|
/* Clear data on quit, according to the Clear private data dialog */
|
||||||
g_object_get (settings, "clear-private-data", &clear_prefs, NULL);
|
g_object_get (settings, "clear-private-data", &clear_prefs, NULL);
|
||||||
|
if (clear_prefs & MIDORI_CLEAR_ON_QUIT)
|
||||||
|
{
|
||||||
#if HAVE_SQLITE
|
#if HAVE_SQLITE
|
||||||
midori_remove_config_file (clear_prefs, MIDORI_CLEAR_HISTORY, "history.db");
|
midori_remove_config_file (clear_prefs, MIDORI_CLEAR_HISTORY, "history.db");
|
||||||
#endif
|
#endif
|
||||||
|
@ -1967,6 +1969,7 @@ main (int argc,
|
||||||
g_free (cache);
|
g_free (cache);
|
||||||
}
|
}
|
||||||
midori_remove_config_file (clear_prefs, MIDORI_CLEAR_TRASH, "tabtrash.xbel");
|
midori_remove_config_file (clear_prefs, MIDORI_CLEAR_TRASH, "tabtrash.xbel");
|
||||||
|
}
|
||||||
|
|
||||||
g_object_unref (settings);
|
g_object_unref (settings);
|
||||||
g_object_unref (app);
|
g_object_unref (app);
|
||||||
|
|
Loading…
Reference in a new issue