Qt: Fix editing first controller preset
This commit is contained in:
parent
c43533f8d8
commit
ce0689687c
|
@ -162,11 +162,7 @@ void ControllerSettingsWindow::onCategoryCurrentRowChanged(int row)
|
|||
|
||||
void ControllerSettingsWindow::onCurrentProfileChanged(int index)
|
||||
{
|
||||
std::string profile_name;
|
||||
if (index > 0)
|
||||
profile_name = m_ui.currentProfile->itemText(index).toStdString();
|
||||
|
||||
switchProfile(profile_name);
|
||||
switchProfile(m_ui.currentProfile->itemText(index).toStdString());
|
||||
}
|
||||
|
||||
void ControllerSettingsWindow::onNewProfileClicked()
|
||||
|
|
Loading…
Reference in New Issue