other uses of self.uistate are protected and this one should be too

This commit is contained in:
Paul Franklin 2017-02-03 23:15:51 -08:00
parent ea133b3e9f
commit 081095d333

View File

@ -488,7 +488,9 @@ class ManagedWindow:
self.window.set_modal(True)
# The following makes sure that we only have one modal window open;
# if more the older ones get temporarily made non-modal.
self.other_modal_window = self.uistate.gwm.find_modal_window(window)
if self.uistate:
self.other_modal_window = self.uistate.gwm.find_modal_window(
window)
if self.other_modal_window:
self.other_modal_window.set_modal(False)
self.window.set_modal(True)