Protect views with no histories

svn: r15300
This commit is contained in:
Doug Blank 2010-05-02 13:46:23 +00:00
parent 12918718f9
commit 527db10555

View File

@ -421,7 +421,8 @@ class DisplayState(gen.utils.Callback):
the given handle.
"""
history = self.get_history(nav_type, nav_group)
history.push(handle)
if history:
history.push(handle)
def set_sensitive(self, state):
self.window.set_sensitive(state)