diff libgui/src/m-editor/find-dialog.cc @ 21706:cce4eb3f6f7c

Prevent find dialog defaulting to "replace all" (bug #47561). * find-dialog.cc (find_dialog::init_search_text): Reset default action to "find" whenever text is initialized.
author Lachlan Andrew <lachlanbis@gmail.com>
date Tue, 29 Mar 2016 21:27:59 +1100
parents 40de9f8f23a6
children aba2e6293dd8
line wrap: on
line diff
--- a/libgui/src/m-editor/find-dialog.cc	Sun May 15 21:08:30 2016 -0700
+++ b/libgui/src/m-editor/find-dialog.cc	Tue Mar 29 21:27:59 2016 +1100
@@ -248,6 +248,10 @@
   // set focus to "Find what" and select all text
   _search_line_edit->setFocus();
   _search_line_edit->selectAll();
+
+  // Default to "find" next time.
+  // Otherwise, it defaults to the last action, which may be "replace all".
+  _find_next_button->setDefault (true);
 }
 
 void