Fix exception when closing early editor in tree of editors (#706)

Fixes #10876
This commit is contained in:
Paul Culley 2018-11-28 01:05:14 -06:00 committed by Sam Manzi
parent a7e683d909
commit 999a3937d1

View File

@ -576,8 +576,8 @@ class ManagedWindow:
self.opened = False
self._save_position(save_config=False) # the next line will save it
self._save_size()
self.clean_up()
self.uistate.gwm.close_track(self.track)
self.clean_up()
# put a previously modal window back to modal, now that we are closing
if self.other_modal_window:
self.other_modal_window.set_modal(True)