]> granicus.if.org Git - python/commitdiff
Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
authorNed Deily <nad@acm.org>
Tue, 29 May 2012 17:43:36 +0000 (10:43 -0700)
committerNed Deily <nad@acm.org>
Tue, 29 May 2012 17:43:36 +0000 (10:43 -0700)
Lib/idlelib/EditorWindow.py
Misc/NEWS

index 6a01db01253ff808f4da686f154bb28817538684..bec2191f5ae073bbc80e9c1683d2024e196c66c4 100644 (file)
@@ -860,7 +860,7 @@ class EditorWindow(object):
         # for each edit window instance, construct the recent files menu
         for instance in self.top.instance_dict:
             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
index 1a01113483bf1dd8d63fa70c712a799a7e5966c9..8ddc0c469ab7b7a0be735702ea2752ab0cd90b83 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -70,6 +70,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
+
 - Issue #14443: Tell rpmbuild to use the correct version of Python in
   bdist_rpm. Initial patch by Ross Lagerwall.