From ffda353d046b71aa05dc365936149ea616beef95 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 10 May 2004 03:13:43 +0000 Subject: [PATCH] * src/DbPrompter.py: added a .grdb if not specified. svn: r3149 --- ChangeLog | 3 +++ src/DbPrompter.py | 3 +++ 2 files changed, 6 insertions(+) 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