forked from qt-creator/qt-creator
Debugger: Show 'Remove expression evaluator' actions only for watches
Change-Id: I481ec7ff450cb250e9c3ad7718f56f223f65dbcb Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -790,9 +790,9 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
new QAction(tr("Remove All Expression Evaluators"), &menu);
|
new QAction(tr("Remove All Expression Evaluators"), &menu);
|
||||||
actRemoveWatches->setEnabled(!WatchHandler::watcherNames().isEmpty());
|
actRemoveWatches->setEnabled(!WatchHandler::watcherNames().isEmpty());
|
||||||
|
|
||||||
if (m_type == LocalsType)
|
if (m_type == LocalsType) {
|
||||||
menu.addAction(actWatchExpression);
|
menu.addAction(actWatchExpression);
|
||||||
else {
|
} else if (m_type == WatchersType) {
|
||||||
menu.addAction(actRemoveWatchExpression);
|
menu.addAction(actRemoveWatchExpression);
|
||||||
menu.addAction(actRemoveWatches);
|
menu.addAction(actRemoveWatches);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user