other uses of self.uistate are protected and this one should be too
This commit is contained in:
parent
ea133b3e9f
commit
081095d333
@ -488,7 +488,9 @@ class ManagedWindow:
|
|||||||
self.window.set_modal(True)
|
self.window.set_modal(True)
|
||||||
# The following makes sure that we only have one modal window open;
|
# The following makes sure that we only have one modal window open;
|
||||||
# if more the older ones get temporarily made non-modal.
|
# 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:
|
if self.other_modal_window:
|
||||||
self.other_modal_window.set_modal(False)
|
self.other_modal_window.set_modal(False)
|
||||||
self.window.set_modal(True)
|
self.window.set_modal(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user