diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp index 25c7dcf1fe7..9f5ae276091 100644 --- a/src/plugins/debugger/watchwindow.cpp +++ b/src/plugins/debugger/watchwindow.cpp @@ -769,8 +769,8 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev) menu.addAction(tr("Insert New Expression Evaluator")); actInsertNewWatchItem->setEnabled(canHandleWatches && canInsertWatches); QAction *actSelectWidgetToWatch = menu.addAction(tr("Select Widget to Add into Expression Evaluator")); - actSelectWidgetToWatch->setEnabled(canHandleWatches - && engine->hasCapability(WatchWidgetsCapability)); + actSelectWidgetToWatch->setEnabled(canHandleWatches && canInsertWatches + && engine->hasCapability(WatchWidgetsCapability)); QAction *actEditTypeFormats = menu.addAction(tr("Change Global Display Formats...")); actEditTypeFormats->setEnabled(true); menu.addSeparator();