mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
fix for values without defaults
This commit is contained in:
parent
720f8ecae8
commit
bd68126b19
1 changed files with 6 additions and 1 deletions
|
@ -92,7 +92,12 @@ QVariant DomainServerSettingsManager::valueOrDefaultValueForKeyPath(const QStrin
|
|||
}
|
||||
}
|
||||
|
||||
return *foundValue;
|
||||
if (foundValue) {
|
||||
return *foundValue;
|
||||
} else {
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const QString SETTINGS_PATH = "/settings.json";
|
||||
|
|
Loading…
Reference in a new issue