comparison 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
comparison
equal deleted inserted replaced
15987:47a4c92924a7 15988:38348a6c3db0
622 _find_dialog->show (); 622 _find_dialog->show ();
623 _find_dialog_is_visible = true; 623 _find_dialog_is_visible = true;
624 } 624 }
625 625
626 _find_dialog->activateWindow (); 626 _find_dialog->activateWindow ();
627 _find_dialog->init_search_text ();
628
627 } 629 }
628 630
629 void 631 void
630 file_editor_tab::do_comment_selected_text (bool comment) 632 file_editor_tab::do_comment_selected_text (bool comment)
631 { 633 {