mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
58cc0fc913
commit
0f35cc18be
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user