summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-10-04 21:54:41 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-10-04 21:54:41 (GMT)
commitbeb6bd96593401fdb71464baaec255f7c12ce365 (patch)
tree23ae0fb331bb6973ab538849ca320a17778d112d /Lib
parenta1dee069831c5551dc28d90d495ab5de967c17d5 (diff)
downloadcpython-beb6bd96593401fdb71464baaec255f7c12ce365.zip
cpython-beb6bd96593401fdb71464baaec255f7c12ce365.tar.gz
cpython-beb6bd96593401fdb71464baaec255f7c12ce365.tar.bz2
Josh Robb's Patch
[ 617109 ] WindowList.py: fix win98 quit.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/WindowList.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/WindowList.py b/Lib/idlelib/WindowList.py
index 7e05a57..542b738 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