Close session panels before setting worldEditor to None
Panels expect worldEditor to not be None and this was spamming exceptions from one of the list models.
This commit is contained in:
parent
9d7adf134e
commit
87c6f45017
@ -824,12 +824,13 @@ class EditorSession(QtCore.QObject):
|
||||
if ret == QtGui.QMessageBox.Cancel:
|
||||
return False
|
||||
|
||||
for panel in self.panels:
|
||||
panel.close()
|
||||
|
||||
self.editorTab.saveState()
|
||||
self.worldEditor.close()
|
||||
self.worldEditor = None
|
||||
|
||||
for panel in self.panels:
|
||||
panel.close()
|
||||
return True
|
||||
|
||||
# --- Inspector ---
|
||||
|
Reference in New Issue
Block a user