diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 9b2629692..5eec94da7 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,6 +1,7 @@ 2005-04-27 Martin Hawlisch * src/gramps_main.py (__init__): Avoid TypeError in schema error message + * src/StartupDialog.py (__init__): Catch Schema errors 2005-04-26 Martin Hawlisch * src/EditPerson.py (on_apply_person_clicked): Fix crash when diff --git a/gramps2/src/StartupDialog.py b/gramps2/src/StartupDialog.py index 0fbfb5fc4..f6f84c210 100644 --- a/gramps2/src/StartupDialog.py +++ b/gramps2/src/StartupDialog.py @@ -27,6 +27,7 @@ import gnome import gnome.ui import GrampsKeys +from QuestionDialog import ErrorDialog from gettext import gettext as _ @@ -51,10 +52,18 @@ class StartupDialog: d = gnome.ui.Druid() self.w.add(d) - d.add(self.build_page1()) - d.add(self.build_page2()) - d.add(self.build_page5()) - d.add(self.build_page_last()) + try: + d.add(self.build_page1()) + d.add(self.build_page2()) + d.add(self.build_page5()) + d.add(self.build_page_last()) + except: + ErrorDialog(_("Configuration error"), + _("\n\nPossibly the installation of GRAMPS was incomplete." + " Make sure the GConf schema of GRAMPS is properly installed.")) + gtk.main_quit() + return + d.connect('cancel',self.close) self.w.connect("delete_event", gtk.main_quit)