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:
Gary Burton
2008-01-09 21:47:37 +00:00
parent c5ad2323dc
commit 45bdb5a121
2 changed files with 8 additions and 3 deletions

View File

@@ -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):
"""