Move code grid into GridAccount

Clear and focus to password textctrl when typing invalid password at login
This commit is contained in:
2010-09-13 19:19:11 +02:00
parent 85e7b0c186
commit 4a90f93130
3 changed files with 96 additions and 63 deletions

View File

@@ -86,6 +86,8 @@ void UsersDialog::OnOK(wxCommandEvent& event)
if (!_kiss->IsValidUser(_users->GetStringSelection(), _password->GetLineText(0)))
{
wxMessageBox(_("Invalid password"), _("Error"), wxICON_ERROR | wxOK);
_password->Clear();
_password->SetFocus();
}
else
{