Add some verification to SearchPanel & wxID_ANY in place of -1
This commit is contained in:
@@ -47,10 +47,10 @@ PreferencesPanel::PreferencesPanel(KissCount* kiss, wxUI *parent) : wxPanel(&(*p
|
||||
|
||||
SetSizer(vbox);
|
||||
|
||||
staticUser = new wxStaticBox(this, -1, _("User"));
|
||||
staticAccount = new wxStaticBox(this, -1, _("Accounts"));
|
||||
staticCategories = new wxStaticBox(this, -1, _("Categories"));
|
||||
staticLanguage = new wxStaticBox(this, -1, _("Language"));
|
||||
staticUser = new wxStaticBox(this, wxID_ANY, _("User"));
|
||||
staticAccount = new wxStaticBox(this, wxID_ANY, _("Accounts"));
|
||||
staticCategories = new wxStaticBox(this, wxID_ANY, _("Categories"));
|
||||
staticLanguage = new wxStaticBox(this, wxID_ANY, _("Language"));
|
||||
|
||||
// User
|
||||
staticBoxSizer = new wxStaticBoxSizer (staticUser, wxVERTICAL);
|
||||
@@ -58,7 +58,7 @@ PreferencesPanel::PreferencesPanel(KissCount* kiss, wxUI *parent) : wxPanel(&(*p
|
||||
gridBagSizer = new wxGridBagSizer(10, 10);
|
||||
staticBoxSizer->Add(gridBagSizer);
|
||||
|
||||
label = new wxStaticText(this, -1, _("Name"));
|
||||
label = new wxStaticText(this, wxID_ANY, _("Name"));
|
||||
gridBagSizer->Add(label, wxGBPosition(0, 0));
|
||||
|
||||
_name = new wxTextCtrl(this, NAME_ID, user->_name);
|
||||
|
||||
Reference in New Issue
Block a user