diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-05-02 13:05:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-02 13:05:09 +0200 |
| commit | e89ac769fb79c5e1cfb1f185c876d7d59e229119 (patch) | |
| tree | 7e9fd9515ae512702eb4ff1bd17cd8fcb5387d94 /Source/Core | |
| parent | 6e62d1ab9f70bffef612d1c6c6bcfbc2958af2a6 (diff) | |
| parent | 0d5b34be342abf7e71ab0866c9f5047fa5cc5c03 (diff) | |
Merge pull request #6727 from spycrab/qt_fix_prof
Qt/MappingWindow: Fix saving to incomplete Profile directory
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp | 5 |
1 files 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; |
