mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #7006 from spycrab/qt_profile_fix
Qt: Multiple profile fixes
This commit is contained in:
commit
62adfaa01c
@ -147,6 +147,8 @@ void MappingWidget::Update()
|
|||||||
|
|
||||||
for (auto* checkbox : m_bools)
|
for (auto* checkbox : m_bools)
|
||||||
checkbox->Update();
|
checkbox->Update();
|
||||||
|
|
||||||
|
SaveSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
ControllerEmu::EmulatedController* MappingWidget::GetController() const
|
ControllerEmu::EmulatedController* MappingWidget::GetController() const
|
||||||
|
@ -216,7 +216,7 @@ void MappingWindow::OnSaveProfilePressed()
|
|||||||
m_controller->SaveConfig(ini.GetOrCreateSection("Profile"));
|
m_controller->SaveConfig(ini.GetOrCreateSection("Profile"));
|
||||||
ini.Save(profile_path);
|
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->addItem(profile_name, QString::fromStdString(profile_path));
|
||||||
m_profiles_combo->setCurrentIndex(m_profiles_combo->count() - 1);
|
m_profiles_combo->setCurrentIndex(m_profiles_combo->count() - 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user