* src/DbPrompter.py (ExistingDbPrompter.chooser,

ImportDbPrompter.chooser): Destroy file chooser on failure (#1014254).


svn: r3497
This commit is contained in:
Alex Roitman
2004-08-23 22:50:35 +00:00
parent 73d8bdafdc
commit ce2b902131
2 changed files with 7 additions and 10 deletions

View File

@@ -213,11 +213,8 @@ class ExistingDbPrompter:
return 0
QuestionDialog.ErrorDialog( _("Could not open file: %s") % filename,
_('The type "%s" is not in the list of known file types') % filetype )
return 0
else:
choose.destroy()
return 0
choose.destroy()
return 0
#-------------------------------------------------------------------------
#
@@ -301,11 +298,8 @@ class ImportDbPrompter:
return 1
QuestionDialog.ErrorDialog( _("Could not open file: %s") % filename,
_('The type "%s" is not in the list of known file types') % filetype )
return 0
else:
choose.destroy()
return 0
choose.destroy()
return 0
#-------------------------------------------------------------------------
#