* src/DbPrompter.py: added a .grdb if not specified.

svn: r3149
This commit is contained in:
Don Allingham 2004-05-10 03:13:43 +00:00
parent 62be72e287
commit 9d1890dc84
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2004-05-09 Don Allingham <donaldallingham@users.sourceforge.net>
* src/DbPrompter.py: added a .grdb if not specified.
2004-05-09 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/PatchNames.py: Clean up conversion to db.
* src/plugins/patchnames.glade: HIGify dialog.

View File

@ -40,6 +40,7 @@ import GrampsCfg
import gnome
import QuestionDialog
from gettext import gettext as _
import os
#-------------------------------------------------------------------------
#
@ -114,6 +115,8 @@ class DbPrompter:
response = choose.run()
if response == gtk.RESPONSE_OK:
filename = choose.get_filename()
if save and os.path.splitext(filename)[1] != ".grdb":
filename = filename + ".grdb"
self.db.read_file(filename)
choose.destroy()
return 1