2008-01-09 Gary Burton <gary.burton@zen.co.uk>
* src/ManagedWindow.py: Close window only if it is already open. Possible fix for bug #1510 svn: r9772
This commit is contained in:
@@ -454,9 +454,10 @@ class ManagedWindow:
|
||||
|
||||
Takes care of closing children and removing itself from menu.
|
||||
"""
|
||||
self.uistate.gwm.close_track(self.track)
|
||||
self.opened = False
|
||||
self.parent_window.present()
|
||||
if self.opened:
|
||||
self.uistate.gwm.close_track(self.track)
|
||||
self.opened = False
|
||||
self.parent_window.present()
|
||||
|
||||
def present(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user