Debugger: Do not store generic debuggers to settings

They get added automatically. Silences a warning for each
generic debugger.

Change-Id: I5a60ddd9780e5992d67a67a75eb0917ceae778e6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2023-03-29 08:52:37 +02:00
parent b36287731e
commit 016385d514

View File

@@ -982,6 +982,8 @@ void DebuggerItemManagerPrivate::saveDebuggers()
int count = 0; int count = 0;
forAllDebuggers([&count, &data](DebuggerItem &item) { forAllDebuggers([&count, &data](DebuggerItem &item) {
if (item.isGeneric()) // do not store generic debuggers, these get added automatically
return;
if (item.isValid() && item.engineType() != NoEngineType) { if (item.isValid() && item.engineType() != NoEngineType) {
QVariantMap tmp = item.toMap(); QVariantMap tmp = item.toMap();
if (!tmp.isEmpty()) { if (!tmp.isEmpty()) {