forked from qt-creator/qt-creator
Debugger: Fix/simplify selection of Widget to watch with newer GDBs
GDB does return dynamic types nowadays, and some widgets are not plain QWidgets but subclasses... Change-Id: If3b7b0f7d639858eeb1e42659a649db22822c20f Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -804,7 +804,7 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
actInsertNewWatchItem->setEnabled(canHandleWatches && canInsertWatches);
|
||||
QAction *actSelectWidgetToWatch =
|
||||
menu.addAction(tr("Select Widget to Add into Expression Evaluator"));
|
||||
actSelectWidgetToWatch->setEnabled(canHandleWatches && canInsertWatches
|
||||
actSelectWidgetToWatch->setEnabled(canHandleWatches
|
||||
&& engine->hasCapability(WatchWidgetsCapability));
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
Reference in New Issue
Block a user