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

svn: r19999
This commit is contained in:
Paul Franklin 2012-07-14 14:05:00 +00:00
parent df36baafc8
commit babbc8d031

View File

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