AUDIT: r21825 - gnucash/trunk/src/backend/sql - [Bug 666329] Empty database after a little while
John Ralls
jralls at code.gnucash.org
Fri Jan 6 19:53:54 EST 2012
Author: jralls
Date: 2012-01-06 19:53:54 -0500 (Fri, 06 Jan 2012)
New Revision: 21825
Trac: http://svn.gnucash.org/trac/changeset/21825
Modified:
gnucash/trunk/src/backend/sql/gnc-backend-sql.c
Log:
[Bug 666329] Empty database after a little while
Reverse qof_book_mark_saved and qof_instance_mark_clean so that the book
is dirty for qof_book_mark_saved when it's the instance.
BP
Modified: gnucash/trunk/src/backend/sql/gnc-backend-sql.c
===================================================================
--- gnucash/trunk/src/backend/sql/gnc-backend-sql.c 2012-01-07 00:53:43 UTC (rev 21824)
+++ gnucash/trunk/src/backend/sql/gnc-backend-sql.c 2012-01-07 00:53:54 UTC (rev 21825)
@@ -672,8 +672,8 @@
(void)gnc_sql_connection_rollback_transaction( be->conn );
// Don't let unknown items still mark the book as being dirty
+ qof_book_mark_saved( be->book );
qof_instance_mark_clean(inst);
- qof_book_mark_saved( be->book );
LEAVE( "Rolled back - unknown object type" );
return;
}
@@ -689,8 +689,8 @@
(void)gnc_sql_connection_commit_transaction( be->conn );
+ qof_book_mark_saved( be->book );
qof_instance_mark_clean(inst);
- qof_book_mark_saved( be->book );
LEAVE( "" );
}
More information about the gnucash-changes
mailing list