* src/plugins/EventCmp.py: (#886) properly handle CANCEL on save dialog

svn: r8017
This commit is contained in:
Don Allingham 2007-01-31 02:03:37 +00:00
parent a5676edc5f
commit 1269fcb4b1
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,5 @@
2007-01-30 Don Allingham <don@gramps-project.org> 2007-01-30 Don Allingham <don@gramps-project.org>
* src/plugins/EventCmp.py: (#886) properly handle CANCEL on save dialog
* src/ReportBase/_ReportDialog.py: error reporting * src/ReportBase/_ReportDialog.py: error reporting
* src/plugins/NarrativeWeb.py: error reporting * src/plugins/NarrativeWeb.py: error reporting

View File

@ -414,11 +414,11 @@ class DisplayChart(ManagedWindow.ManagedWindow):
f.set_current_folder(os.getcwd()) f.set_current_folder(os.getcwd())
status = f.run() status = f.run()
name = unicode(f.get_filename(), f.hide()
sys.getfilesystemencoding())
f.destroy()
if status == gtk.RESPONSE_OK: if status == gtk.RESPONSE_OK:
name = unicode(f.get_filename(),
sys.getfilesystemencoding())
pstyle = BaseDoc.PaperStyle("junk",10,10) pstyle = BaseDoc.PaperStyle("junk",10,10)
doc = ODSDoc.ODSDoc(pstyle,BaseDoc.PAPER_PORTRAIT) doc = ODSDoc.ODSDoc(pstyle,BaseDoc.PAPER_PORTRAIT)
doc.creator(self.db.get_researcher().get_name()) doc.creator(self.db.get_researcher().get_name())
@ -444,6 +444,7 @@ class DisplayChart(ManagedWindow.ManagedWindow):
spreadsheet.write_table_data(top,skip_columns) spreadsheet.write_table_data(top,skip_columns)
spreadsheet.finalize() spreadsheet.finalize()
f.destroy()
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #