Skip to content

Commit bbc0a3f

Browse files
authored
Merge pull request #2362 from JulianGro/fix_private_error
Fix `error: 'operator[]' is a private member of 'QMultiMap<QString, QVariant>'` error spam
2 parents 480cba9 + c8f968a commit bbc0a3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries/task/src/task/Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ template <class C> class PersistentConfig : public C {
7070
if (_presets.contains(preset)) {
7171
// Always start back at default to remain deterministic
7272
QVariantMap config = _default;
73-
QVariantMap presetConfig = _presets[preset].toMap();
73+
QVariantMap presetConfig = _presets.value(preset).toMap();
7474
for (auto it = presetConfig.cbegin(); it != presetConfig.cend(); it++) {
7575
config.insert(it.key(), it.value());
7676
}

0 commit comments

Comments
 (0)