From: Kurt B. Kaiser Date: Fri, 4 Oct 2002 21:54:41 +0000 (+0000) Subject: Josh Robb's Patch X-Git-Tag: v2.3c1~3879 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=beb6bd96593401fdb71464baaec255f7c12ce365;p=thirdparty%2FPython%2Fcpython.git Josh Robb's Patch [ 617109 ] WindowList.py: fix win98 quit. --- diff --git a/Lib/idlelib/WindowList.py b/Lib/idlelib/WindowList.py index 7e05a57c0329..542b738674f0 100644 --- a/Lib/idlelib/WindowList.py +++ b/Lib/idlelib/WindowList.py @@ -67,6 +67,10 @@ class ListedToplevel(Toplevel): def destroy(self): registry.delete(self) Toplevel.destroy(self) + # If this is Idle's last window then quit the mainloop + # (Needed for clean exit on Windows 98) + if not registry.dict: + self.quit() def get_title(self): # Subclass can override