diff options
author | Ned Deily <nad@acm.org> | 2012-05-29 17:42:34 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-05-29 17:42:34 (GMT) |
commit | 7148984d61b5677af1ee090e52c1cba08299c9f9 (patch) | |
tree | 3e524f4b81ee9e405cfdc5b2d320f688bc462a9b | |
parent | ff0e22b6ec0080478c316a9476cd40aa1d398788 (diff) | |
download | cpython-7148984d61b5677af1ee090e52c1cba08299c9f9.zip cpython-7148984d61b5677af1ee090e52c1cba08299c9f9.tar.gz cpython-7148984d61b5677af1ee090e52c1cba08299c9f9.tar.bz2 |
Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index fb05245..68b51e6 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -856,7 +856,7 @@ class EditorWindow(object): # for each edit window instance, construct the recent files menu for instance in self.top.instance_dict.keys(): menu = instance.recent_files_menu - menu.delete(1, END) # clear, and rebuild: + menu.delete(0, END) # clear, and rebuild: for i, file_name in enumerate(rf_list): file_name = file_name.rstrip() # zap \n # make unicode string to display non-ASCII chars correctly @@ -67,6 +67,8 @@ Core and Builtins Library ------- +- Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu. + - Issue12510: Attempting to get invalid tooltip no longer closes Idle. Original patch by Roger Serwy. |