mirror of https://github.com/odrling/Aegisub
Select the contents of the Find Next box when the dialog is first created
It was only being selected when the dialog already existed and was just being re-shown.
This commit is contained in:
parent
766b82d71b
commit
a8bee18308
|
@ -116,6 +116,10 @@ DialogSearchReplace::DialogSearchReplace(agi::Context* c, bool replace)
|
|||
SetSizerAndFit(main_sizer);
|
||||
CenterOnParent();
|
||||
|
||||
TransferDataToWindow();
|
||||
find_edit->SetFocus();
|
||||
find_edit->SelectAll();
|
||||
|
||||
find_next->Bind(wxEVT_COMMAND_BUTTON_CLICKED, std::bind(&DialogSearchReplace::FindReplace, this, &SearchReplaceEngine::FindNext));
|
||||
replace_next->Bind(wxEVT_COMMAND_BUTTON_CLICKED, std::bind(&DialogSearchReplace::FindReplace, this, &SearchReplaceEngine::ReplaceNext));
|
||||
replace_all->Bind(wxEVT_COMMAND_BUTTON_CLICKED, std::bind(&DialogSearchReplace::FindReplace, this, &SearchReplaceEngine::ReplaceAll));
|
||||
|
|
Loading…
Reference in New Issue