From: Ned Deily Date: Tue, 29 May 2012 17:43:36 +0000 (-0700) Subject: Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu. X-Git-Tag: v3.3.0a4~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3aee9416a0ef4ce385b655cb20c8ec31b839302f;p=python Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu. --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 6a01db0125..bec2191f5a 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -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 diff --git a/Misc/NEWS b/Misc/NEWS index 1a01113483..8ddc0c469a 100644 --- 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.