diff --git a/ChangeLog b/ChangeLog index aa95442a7..3cf215c2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2004-05-09 Don Allingham + * src/DbPrompter.py: added a .grdb if not specified. + 2004-05-09 Alex Roitman * src/plugins/PatchNames.py: Clean up conversion to db. * src/plugins/patchnames.glade: HIGify dialog. diff --git a/src/DbPrompter.py b/src/DbPrompter.py index de904eac9..0fcbefa81 100644 --- a/src/DbPrompter.py +++ b/src/DbPrompter.py @@ -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