Skip to content
Snippets Groups Projects
Commit 00cd7266 authored by hjk's avatar hjk Committed by hjk
Browse files

Debugger: Add more safety net for failing dumper


In case a dumper explicitly reports the presence of children
but fails to extract them, remove the model's desire to
see them by re-setting the 'wantsChildren' hint explicitly
after a full update.

Change-Id: I09d3d3dd67067d22d39f7685b57570ecb42984d2
Reviewed-by: default avatarChristian Stenger <christian.stenger@qt.io>
parent 88e612f2
Branches
Tags
No related merge requests found
...@@ -1379,6 +1379,13 @@ void WatchHandler::notifyUpdateFinished() ...@@ -1379,6 +1379,13 @@ void WatchHandler::notifyUpdateFinished()
foreach (auto item, toRemove) foreach (auto item, toRemove)
m_model->destroyItem(item); m_model->destroyItem(item);
m_model->forAllItems([this](WatchItem *item) {
if (item->wantsChildren && isExpandedIName(item->iname)) {
m_model->m_engine->showMessage(QString("ADJUSTING CHILD EXPECTATION FOR " + item->iname));
item->wantsChildren = false;
}
});
m_model->m_contentsValid = true; m_model->m_contentsValid = true;
updateWatchersWindow(); updateWatchersWindow();
m_model->reexpandItems(); m_model->reexpandItems();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment