1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Autoselect all text when validation fails as reported by Robert

This commit is contained in:
Leland Lucius 2015-05-03 22:30:52 -05:00
parent e55e91c5a1
commit 9f22789dc1

View File

@ -91,7 +91,12 @@ bool NumValidatorBase::Validate(wxWindow *parent)
{
wxMessageBox(errmsg, _("Validation error"),
wxOK | wxICON_ERROR, parent);
m_validatorWindow->SetFocus();
wxTextEntry *te = GetTextEntry();
if ( te )
{
te->SelectAll();
te->SetFocus();
}
return false;
}