mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-10-31 14:13:50 +01:00 
			
		
		
		
	Autoselect all text when validation fails as reported by Robert
This commit is contained in:
		| @@ -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; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user