From fd6da64350795ab1df333eeefe3fe1ba488835d7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 7 Sep 2003 14:16:25 +0000 Subject: [PATCH] * src/gramps_main.py: re-present the open dialog box on a failure to open a file. * src/gramps.glade: change Home button from stock version to something we can translate svn: r2098 --- gramps2/src/gramps.glade | 5 +++-- gramps2/src/gramps_main.py | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gramps2/src/gramps.glade b/gramps2/src/gramps.glade index b53c9d465..d34c46c01 100644 --- a/gramps2/src/gramps.glade +++ b/gramps2/src/gramps.glade @@ -778,8 +778,9 @@ True Make the Home Person the active person - gtk-home - True + _Home + True + gtk-home diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 73a1407cd..976dd5003 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -967,7 +967,6 @@ class Gramps: def new_database_response(self): import DbPrompter - self.clear_database(2) DbPrompter.DbPrompter(self,1) def clear_person_tabs(self): @@ -1173,12 +1172,15 @@ class Gramps: elif base == "autosave.gramps": filename = os.path.dirname(filename) elif not os.path.isdir(filename): + import DbPrompter + DbPrompter.DbPrompter(self,0) self.displayError(_("Database could not be opened"), _("%s is not a directory.") % filename + ' ' + \ _("You should select a directory that contains a " "data.gramps file or a gramps.zodb file.")) return + self.clear_database(2) if self.load_database(filename) == 1: if filename[-1] == '/': filename = filename[:-1] @@ -1448,6 +1450,8 @@ class Gramps: if os.path.exists(filename): if not os.path.isdir(filename): + import DbPrompter + DbPrompter.DbPrompter(self,0) self.displayError(_("Database could not be opened"), _("%s is not a directory.") % filename + ' ' + \ _("You should select a directory that contains a "