diff libgui/src/m-editor/file-editor-tab.cc @ 15988:38348a6c3db0

gui: initialize search text in the find dialog with selected text in editor file * find_dialog.h: new function init_search_text () * find_dialog.cc (init_search_text): new function, initializes the search text of the file dialog with the slected text of the related editor tab * file-editor-tab.cc (find): call init_search_text after activating the find dialog
author Torsten <ttl@justmail.de>
date Thu, 31 Jan 2013 19:28:23 +0100
parents 1eb3c67139f6
children 06187a0b7a62
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Tue Jan 29 18:24:16 2013 +0100
+++ b/libgui/src/m-editor/file-editor-tab.cc	Thu Jan 31 19:28:23 2013 +0100
@@ -624,6 +624,8 @@
     }
 
   _find_dialog->activateWindow ();
+  _find_dialog->init_search_text ();
+
 }
 
 void