5696: clicking the "home" icon should report if no default person has been set
svn: r20000
This commit is contained in:
parent
c2a2343573
commit
d26a7312d9
@ -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 gui.dialog import WarningDialog
|
||||||
|
WarningDialog(_("No Home Person"),
|
||||||
|
_("You need to set a 'default person' to go to."))
|
||||||
|
|
||||||
def jump(self):
|
def jump(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user