From 0d5b34be342abf7e71ab0866c9f5047fa5cc5c03 Mon Sep 17 00:00:00 2001 From: spycrab Date: Wed, 2 May 2018 06:43:16 +0200 Subject: [PATCH] Qt/MappingWindow: Fix saving to incomplete Profile directory --- Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp index 21898b3f47..fbbcb59c17 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp @@ -199,8 +199,9 @@ void MappingWindow::OnLoadProfilePressed() void MappingWindow::OnSaveProfilePressed() { const QString profile_name = m_profiles_combo->currentText(); - const std::string profile_path = - File::GetUserPath(D_CONFIG_IDX) + PROFILES_DIR + profile_name.toStdString() + ".ini"; + const std::string profile_path = File::GetUserPath(D_CONFIG_IDX) + PROFILES_DIR + + m_config->GetProfileName() + "/" + profile_name.toStdString() + + ".ini"; if (profile_name.isEmpty()) return;