]> 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 e5a13713882a5957e800abd38f53ff36f7ec0ffa..e73f2c50396505b91301d337e620d781034051a6 100644 (file)
@@ -123,6 +123,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 4405779a758e82117a6c58d04d2f22d1a6acff0f..6014d2e14f0a34cdaa0973909d1d926a2d0ccd67 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,8 @@ Library
 - Issue #17572: Avoid chained exceptions while passing bad directives to
   time.strptime().  Initial patch by Claudiu Popa.
 
+- Issue #17625: In IDLE, close the replace dialog after it is used.
+
 - Issue #14254: IDLE now handles readline correctly across shell restarts.
 
 - Issue #17614: IDLE no longer raises exception when quickly closing a file.