CppEditor: Fix soft assert when serializing clangd setting

This was probably introduced by a merge commit.

Change-Id: I5360b8fb25aa9cfbf8e6d3563b0219152a144815
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2024-03-19 16:54:43 +01:00
parent aaf839bcf0
commit 230bfa88a0

View File

@@ -624,8 +624,7 @@ Store ClangdSettings::Data::toMap() const
map.insert(clangdSizeThresholdKey(), sizeThresholdInKb);
map.insert(sessionsWithOneClangdKey(), sessionsWithOneClangd);
map.insert(diagnosticConfigIdKey(), diagnosticConfigId.toSetting());
if (haveCheckedHardwareReqirements != false)
map.insert(checkedHardwareKey(), true);
map.insert(checkedHardwareKey(), haveCheckedHardwareReqirements);
map.insert(completionResultsKey(), completionResults);
return map;
}