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