svn: r8628
This commit is contained in:
Alex Roitman 2007-06-23 01:03:48 +00:00
parent fd8e5b0a06
commit 7fb923ecd7
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-06-22 Alex Roitman <shura@phy.ucsf.edu>
* src/GrampsDb/_GrampsGEDDB.py (close): Save after batch transactions.
* src/GrampsDb/_GrampsXMLDB.py (close): Save after batch transactions.
2007-06-22 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_ReportDialog.py: Still let REAL exceptions pass through.

View File

@ -68,7 +68,8 @@ class GrampsGEDDB(GrampsInMemDB):
def close(self):
if not self.db_is_open:
return
if not self.readonly and len(self.undodb) > 0:
if (not self.readonly) and ((len(self.undodb)>0) or
not self.abort_possible):
writer = GedcomWriter(self,self.get_default_person())
writer.export_data(self.full_name)
self.db_is_open = False

View File

@ -74,7 +74,8 @@ class GrampsXMLDB(GrampsInMemDB):
def close(self):
if not self.db_is_open:
return
if not self.readonly and len(self.undodb) > 0:
if (not self.readonly) and ((len(self.undodb)>0) or
not self.abort_possible):
quick_write(self,self.full_name)
self.db_is_open = False
GrampsInMemDB.close(self)