[Python-checkins] cpython (2.7): Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
ned.deily
python-checkins at python.org
Tue May 29 19:52:17 CEST 2012
http://hg.python.org/cpython/rev/3108331c88ec
changeset: 77233:3108331c88ec
branch: 2.7
parent: 77212:6554ebbeb2f3
user: Ned Deily <nad at acm.org>
date: Tue May 29 10:42:34 2012 -0700
summary:
Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
files:
Lib/idlelib/EditorWindow.py | 2 +-
Misc/NEWS | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -856,7 +856,7 @@
# 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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -67,6 +67,8 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list