forked from qt-creator/qt-creator
debugger: remove unnecessary first level in WatchModel
There used to be a single 'Locals' etc item of the true root that was never shown anyway. Removing this also renders using setRootIndex() in WatchWindow unnecessary.
This commit is contained in:
@@ -2699,7 +2699,7 @@ bool GdbEngine::showToolTip()
|
||||
WatchModel *model = handler->model(TooltipsWatch);
|
||||
QString iname = tooltipINameForExpression(m_toolTipExpression);
|
||||
model->setActiveData(iname);
|
||||
WatchItem *item = model->findItem(iname, model->dummyRoot());
|
||||
WatchItem *item = model->findItem(iname, model->rootItem());
|
||||
if (!item) {
|
||||
hideDebuggerToolTip();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user