diff options
| author | Kurt B. Kaiser <kbk@shore.net> | 2002-10-04 21:54:41 +0000 |
|---|---|---|
| committer | Kurt B. Kaiser <kbk@shore.net> | 2002-10-04 21:54:41 +0000 |
| commit | beb6bd96593401fdb71464baaec255f7c12ce365 (patch) | |
| tree | 23ae0fb331bb6973ab538849ca320a17778d112d /Lib/idlelib/WindowList.py | |
| parent | a1dee069831c5551dc28d90d495ab5de967c17d5 (diff) | |
| download | cpython-git-beb6bd96593401fdb71464baaec255f7c12ce365.tar.gz | |
Josh Robb's Patch
[ 617109 ] WindowList.py: fix win98 quit.
Diffstat (limited to 'Lib/idlelib/WindowList.py')
| -rw-r--r-- | Lib/idlelib/WindowList.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/WindowList.py b/Lib/idlelib/WindowList.py index 7e05a57c03..542b738674 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 |
