diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-05-29 01:26:17 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-05-29 01:32:07 +0200 |
| commit | e6273b177f372aed288540ab3a077645ea7b28a3 (patch) | |
| tree | 2340125875c7320dca5072b56d8cc19020303f05 /Source | |
| parent | 5829ad21b79d788fd5c2d2cd2d0a58603367d332 (diff) | |
Qt/MappingWindow: Fix profile saving not working when the index is not null
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp index b87c027e01..d642f17f78 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp @@ -216,7 +216,7 @@ void MappingWindow::OnSaveProfilePressed() m_controller->SaveConfig(ini.GetOrCreateSection("Profile")); ini.Save(profile_path); - if (m_profiles_combo->currentIndex() == 0) + if (m_profiles_combo->currentIndex() == 0 || m_profiles_combo->findText(profile_name) == -1) { m_profiles_combo->addItem(profile_name, QString::fromStdString(profile_path)); m_profiles_combo->setCurrentIndex(m_profiles_combo->count() - 1); |
