5696: clicking the "home" icon should report if no default person has been set

svn: r20000
This commit is contained in:
Paul Franklin 2012-07-14 14:05:37 +00:00
parent c2a2343573
commit d26a7312d9

View File

@ -330,6 +330,10 @@ class NavigationView(PageView):
defperson = self.dbstate.db.get_default_person()
if defperson:
self.change_active(defperson.get_handle())
else:
from gui.dialog import WarningDialog
WarningDialog(_("No Home Person"),
_("You need to set a 'default person' to go to."))
def jump(self):
"""