diff --git a/src/DisplayState.py b/src/DisplayState.py index 58618657b..dcb03f234 100644 --- a/src/DisplayState.py +++ b/src/DisplayState.py @@ -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)