Permalink
Browse files

Qt/MappingWindow: Fix saving to incomplete Profile directory

  • Loading branch information...
spycrab committed May 2, 2018
1 parent 6e62d1a commit 0d5b34be342abf7e71ab0866c9f5047fa5cc5c03
Showing with 3 additions and 2 deletions.
  1. +3 −2 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;

0 comments on commit 0d5b34b

Please sign in to comment.