Add some verification to SearchPanel & wxID_ANY in place of -1
This commit is contained in:
@@ -26,24 +26,24 @@ EVT_BUTTON(BUTTON_OK_ID, PasswordDialog::OnOK)
|
||||
EVT_BUTTON(BUTTON_CANCEL_ID, PasswordDialog::OnCancel)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
PasswordDialog::PasswordDialog(KissCount* kiss, wxUI *parent) : wxDialog(&(*parent), -1, _("Change password")), _kiss(kiss), _wxUI(parent)
|
||||
PasswordDialog::PasswordDialog(KissCount* kiss, wxUI *parent) : wxDialog(&(*parent), wxID_ANY, _("Change password")), _kiss(kiss), _wxUI(parent)
|
||||
{
|
||||
wxGridBagSizer *gridBagSizer;
|
||||
wxStaticText* label;
|
||||
|
||||
gridBagSizer = new wxGridBagSizer(5, 3);
|
||||
|
||||
label = new wxStaticText(this, -1, _("Old password "));
|
||||
label = new wxStaticText(this, wxID_ANY, _("Old password "));
|
||||
gridBagSizer->Add(label, wxGBPosition(0, 0));
|
||||
_oldPassword = new wxTextCtrl(this, OLD_PASSWORD_ID);
|
||||
gridBagSizer->Add(_oldPassword, wxGBPosition(0, 1));
|
||||
|
||||
label = new wxStaticText(this, -1, _("New password "));
|
||||
label = new wxStaticText(this, wxID_ANY, _("New password "));
|
||||
gridBagSizer->Add(label, wxGBPosition(1, 0));
|
||||
_newPassword = new wxTextCtrl(this, NEW_PASSWORD_ID);
|
||||
gridBagSizer->Add(_newPassword, wxGBPosition(1, 1));
|
||||
|
||||
label = new wxStaticText(this, -1, _("Confirm password "));
|
||||
label = new wxStaticText(this, wxID_ANY, _("Confirm password "));
|
||||
gridBagSizer->Add(label, wxGBPosition(2, 0));
|
||||
_confirmPassword = new wxTextCtrl(this, CONFIRM_PASSWORD_ID);
|
||||
gridBagSizer->Add(_confirmPassword, wxGBPosition(2, 1));
|
||||
|
Reference in New Issue
Block a user