From 1f708e8bad98da2020ca8eab16fa3ab9542b9ea2 Mon Sep 17 00:00:00 2001 From: vvanelslande Date: Sat, 9 Nov 2019 13:13:41 -0500 Subject: [PATCH] settings, configure_input: fix rename input profile --- src/citra_qt/configuration/configure_input.cpp | 1 + src/core/settings.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/configuration/configure_input.cpp b/src/citra_qt/configuration/configure_input.cpp index 642d5f14af..2f7e70c774 100644 --- a/src/citra_qt/configuration/configure_input.cpp +++ b/src/citra_qt/configuration/configure_input.cpp @@ -505,6 +505,7 @@ void ConfigureInput::RenameProfile() { ui->profile->setItemText(ui->profile->currentIndex(), new_name); Settings::RenameCurrentProfile(new_name.toStdString()); + Settings::SaveProfile(ui->profile->currentIndex()); } bool ConfigureInput::IsProfileNameDuplicate(const QString& name) const { diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 079d276d09..92409364f5 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -137,8 +137,7 @@ void DeleteProfile(int index) { } void RenameCurrentProfile(std::string new_name) { - Settings::values.input_profiles[Settings::values.current_input_profile_index].name = - std::move(new_name); + Settings::values.current_input_profile.name = std::move(new_name); } } // namespace Settings