Bug #623844 - CRITICAL gnc.backend Error message in trace file.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19350 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-07-08 19:18:30 +00:00
parent e5b47e0eda
commit f1edb7422d

View File

@ -1120,6 +1120,8 @@ retain_type_changed_cb(GConfEntry *entry, gpointer user_data)
gchar *choice = NULL;
g_return_if_fail(be != NULL);
choice = gnc_gconf_get_string(GCONF_GENERAL, KEY_RETAIN_TYPE, NULL);
if (!choice)
choice = g_strdup("days");
if (safe_strcmp (choice, "never") == 0)
be->file_retention_type = XML_RETAIN_NONE;