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:
parent
e55e91c5a1
commit
9f22789dc1
@ -91,7 +91,12 @@ bool NumValidatorBase::Validate(wxWindow *parent)
|
|||||||
{
|
{
|
||||||
wxMessageBox(errmsg, _("Validation error"),
|
wxMessageBox(errmsg, _("Validation error"),
|
||||||
wxOK | wxICON_ERROR, parent);
|
wxOK | wxICON_ERROR, parent);
|
||||||
m_validatorWindow->SetFocus();
|
wxTextEntry *te = GetTextEntry();
|
||||||
|
if ( te )
|
||||||
|
{
|
||||||
|
te->SelectAll();
|
||||||
|
te->SetFocus();
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user