forked from qt-creator/qt-creator
Debugger: Allow evaluation of children of evaluated expressions
Task-number: QTCREATORBUG-5920 Change-Id: I00a42b93e3840f106ee9d4e94e1bc9f677e13e3f Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -744,9 +744,12 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
actSelectWidgetToWatch.setEnabled(canHandleWatches && canInsertWatches
|
actSelectWidgetToWatch.setEnabled(canHandleWatches && canInsertWatches
|
||||||
&& engine->hasCapability(WatchWidgetsCapability));
|
&& engine->hasCapability(WatchWidgetsCapability));
|
||||||
|
|
||||||
|
bool canAddWatches = canHandleWatches && !exp.isEmpty();
|
||||||
|
// Suppress for top-level watchers.
|
||||||
|
if (m_type == WatchersType && mi0.parent().isValid() && !mi0.parent().parent().isValid())
|
||||||
|
canAddWatches = false;
|
||||||
QAction actWatchExpression(addWatchActionText(exp), 0);
|
QAction actWatchExpression(addWatchActionText(exp), 0);
|
||||||
actWatchExpression.setEnabled(
|
actWatchExpression.setEnabled(canAddWatches);
|
||||||
canHandleWatches && !exp.isEmpty() && m_type == LocalsType);
|
|
||||||
|
|
||||||
// Can remove watch if engine can handle it or session engine.
|
// Can remove watch if engine can handle it or session engine.
|
||||||
QModelIndex p = mi0;
|
QModelIndex p = mi0;
|
||||||
|
Reference in New Issue
Block a user