Commit 67716b5f authored by Steven M. Gava's avatar Steven M. Gava

bugfix for the problem where EditorWindow instances

would appear to freeze for a few seconds on closing
in some cases when running under X
parent bdba3205
......@@ -534,11 +534,14 @@ class EditorWindow:
def maybesave(self):
if self.io:
if not self.get_saved():
if self.top.state()!='normal':
self.top.deiconify()
self.top.lower()
self.top.lift()
return self.io.maybesave()
def close(self):
self.top.wm_deiconify()
self.top.tkraise()
reply = self.maybesave()
if reply != "cancel":
self._close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment