Debugger: Fix thinko to avoid accumulating outdated items

Only first level items (.local, .watch, ...) are meant to stay,
so all items below the first level needs to get the outdated
marker, not items below the second level.

Change-Id: I78097905fce1898e16f297982eec5974b2465b0c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-06-09 16:45:49 +02:00
parent e2ba0aca9b
commit d88e75ea9a

View File

@@ -1350,7 +1350,7 @@ void WatchHandler::notifyUpdateStarted(const QStringList &inames)
auto marker = [](WatchItem *item) { item->outdated = true; };
if (inames.isEmpty()) {
m_model->forSecondLevelItems([marker](WatchItem *item) {
m_model->forFirstLevelItems([marker](WatchItem *item) {
item->forAllChildren(marker);
});
} else {