Commit 02404afd authored by hjk's avatar hjk

Debugger: Allow evaluation of children of evaluated expressions

Task-number: QTCREATORBUG-5920
Change-Id: I00a42b93e3840f106ee9d4e94e1bc9f677e13e3f
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent d5f9f781
......@@ -744,9 +744,12 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
actSelectWidgetToWatch.setEnabled(canHandleWatches && canInsertWatches
&& 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);
actWatchExpression.setEnabled(
canHandleWatches && !exp.isEmpty() && m_type == LocalsType);
actWatchExpression.setEnabled(canAddWatches);
// Can remove watch if engine can handle it or session engine.
QModelIndex p = mi0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment