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:
hjk
2014-05-27 13:36:24 +02:00
parent e5bef06d6e
commit d9ba7998c5
2 changed files with 6 additions and 11 deletions

View File

@@ -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();