forked from qt-creator/qt-creator
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:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user