]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
close search and replace dialog after it is used (closes #17625)
authorBenjamin Peterson <benjamin@python.org>
Thu, 4 Apr 2013 02:35:12 +0000 (22:35 -0400)
committerBenjamin Peterson <benjamin@python.org>
Thu, 4 Apr 2013 02:35:12 +0000 (22:35 -0400)
Lib/idlelib/ReplaceDialog.py
Misc/NEWS

index ae440353f7bb120a0226e6ab8fc77f199a6cb5b7..54c270df23c5fbeac5a15d60957aa9887164f042 100644 (file)
@@ -122,6 +122,7 @@ class ReplaceDialog(SearchDialogBase):
         text.undo_block_stop()
         if first and last:
             self.show_hit(first, last)
+        self.close()
 
     def do_find(self, ok=0):
         if not self.engine.getprog():
index 45873092c3763dbc5ad074195dfae49b1ecf8c08..6f4740c80bb05b9a51641c81b7587f66fa16cfd3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #17625: In IDLE, close the replace dialog after it is used.
+
 - Issue #17531: Fix tests that thought group and user ids were always the int
   type. Also, always allow -1 as a valid group and user id.