* src/StartupDialog.py (__init__): Catch Schema errors

svn: r4435
This commit is contained in:
Martin Hawlisch 2005-04-27 19:30:07 +00:00
parent b5c63cf625
commit 371ff606b7
2 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,7 @@
2005-04-27 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/gramps_main.py (__init__): Avoid TypeError in schema error
message
* src/StartupDialog.py (__init__): Catch Schema errors
2005-04-26 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/EditPerson.py (on_apply_person_clicked): Fix crash when

View File

@ -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)
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)