Qt: Fix editing first controller preset

This commit is contained in:
Stenzek 2025-01-12 02:09:55 +10:00
parent c43533f8d8
commit ce0689687c
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -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()