Permalink
Browse files

Merge pull request #6727 from spycrab/qt_fix_prof

Qt/MappingWindow: Fix saving to incomplete Profile directory
  • Loading branch information...
delroth committed May 2, 2018
2 parents 6e62d1a + 0d5b34b commit e89ac769fb79c5e1cfb1f185c876d7d59e229119
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 e89ac76

Please sign in to comment.