Bug 623801 - gnucash file is not saved

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19407 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-08-05 21:10:51 +00:00
parent 58cc0fc913
commit 0f35cc18be

View File

@ -836,6 +836,10 @@ gnc_xml_be_remove_old_files(FileBackend *be)
name = g_build_filename(be->dirname, dent, (gchar*)NULL);
len = strlen(name) - 4;
/* Never remove the current data file itself */
if (g_strcmp0(name, be->fullpath) == 0)
continue;
/* Is this file associated with the current data file */
if (strncmp(name, be->fullpath, pathlen) == 0)
{