diff --git a/src/controllers/dlgprefcontroller.cpp b/src/controllers/dlgprefcontroller.cpp index 8816f2c74c1e..d6db5c042296 100644 --- a/src/controllers/dlgprefcontroller.cpp +++ b/src/controllers/dlgprefcontroller.cpp @@ -519,7 +519,7 @@ void DlgPrefController::slotApply() { QString mappingPath = mappingPathFromIndex(m_ui.comboBoxMapping->currentIndex()); m_pMapping = LegacyControllerMappingFileHandler::loadMapping( - mappingPath, QDir(resourceMappingsPath(m_pConfig))); + QFileInfo(mappingPath), QDir(resourceMappingsPath(m_pConfig))); // Load the resulting mapping (which has been mutated by the input/output // table models). The controller clones the mapping so we aren't touching @@ -581,7 +581,7 @@ void DlgPrefController::slotMappingSelected(int chosenIndex) { std::shared_ptr pMapping = LegacyControllerMappingFileHandler::loadMapping( - mappingPath, QDir(resourceMappingsPath(m_pConfig))); + QFileInfo(mappingPath), QDir(resourceMappingsPath(m_pConfig))); if (pMapping) { DEBUG_ASSERT(!pMapping->isDirty());