Skip to content

Commit

Permalink
Pref Controller: fix false-positive 'isDirty' when starting Wizard wi…
Browse files Browse the repository at this point in the history
…th 'No Mapping'
  • Loading branch information
ronso0 committed Aug 25, 2022
1 parent 06ac0df commit ea61944
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/dlgprefcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,9 @@ void DlgPrefController::slotMappingSelected(int chosenIndex) {
}

// Check if the mapping is different from the configured mapping
if (m_pControllerManager->getConfiguredMappingFileForDevice(
m_pController->getName()) != mappingPath) {
if (m_GuiInitialized &&
m_pControllerManager->getConfiguredMappingFileForDevice(
m_pController->getName()) != mappingPath) {
setDirty(true);
}

Expand Down

0 comments on commit ea61944

Please sign in to comment.