forked from qt-creator/qt-creator
Debugging: Context Menu check for Watch Point Capability
Change-Id: I5b8d00c85f3857520757ccfd1a6007a5c2a1c50f Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -743,7 +743,8 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
"to stop when the data at the address is modified."));
|
||||
|
||||
QAction *actSetWatchpointAtExpression = 0;
|
||||
if (name.isEmpty()) {
|
||||
const bool canSetWatchpointAtExpression = engineCapabilities & WatchpointByExpressionCapability;
|
||||
if (name.isEmpty() || !canSetWatchpointAtExpression) {
|
||||
actSetWatchpointAtExpression =
|
||||
new QAction(tr("Add Data Breakpoint at Expression"),
|
||||
&breakpointMenu);
|
||||
|
||||
Reference in New Issue
Block a user