get_active should return None if no history object exists
svn: r15037
This commit is contained in:
parent
844002e312
commit
ffffb7047c
@ -413,7 +413,7 @@ class DisplayState(gen.utils.Callback):
|
|||||||
navigation type and group.
|
navigation type and group.
|
||||||
"""
|
"""
|
||||||
history = self.get_history(nav_type, nav_group)
|
history = self.get_history(nav_type, nav_group)
|
||||||
return history.present()
|
return history.present() if history else None
|
||||||
|
|
||||||
def set_active(self, handle, nav_type, nav_group=0):
|
def set_active(self, handle, nav_type, nav_group=0):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user