diff options
Diffstat (limited to 'Source/Core/DolphinWX/InputConfigDiag.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/InputConfigDiag.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/Core/DolphinWX/InputConfigDiag.cpp b/Source/Core/DolphinWX/InputConfigDiag.cpp index ff1528dfa1..9a97e89127 100644 --- a/Source/Core/DolphinWX/InputConfigDiag.cpp +++ b/Source/Core/DolphinWX/InputConfigDiag.cpp @@ -1055,14 +1055,11 @@ InputConfigDialog::InputConfigDialog(wxWindow* const parent, InputConfig& config , m_config(config) { m_pad_notebook = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_DEFAULT); - for (unsigned int i = 0; i < std::min(config.controllers.size(), (size_t)MAX_WIIMOTES); ++i) - { - GamepadPage* gp = new GamepadPage(m_pad_notebook, m_config, i, this); - m_padpages.push_back(gp); - m_pad_notebook->AddPage(gp, wxString::Format("%s %u", wxGetTranslation(StrToWxStr(m_config.gui_name)), 1+i)); - } + GamepadPage* gp = new GamepadPage(m_pad_notebook, m_config, tab_num, this); + m_padpages.push_back(gp); + m_pad_notebook->AddPage(gp, wxString::Format("%s [%u]", wxGetTranslation(StrToWxStr(m_config.gui_name)), 1 + tab_num)); - m_pad_notebook->SetSelection(tab_num); + m_pad_notebook->SetSelection(0); UpdateDeviceComboBox(); UpdateProfileComboBox(); |
