Debugging: Context Menu check for Watch Point Capability

Change-Id: I5b8d00c85f3857520757ccfd1a6007a5c2a1c50f
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Aurindam Jana
2011-12-23 14:01:30 +01:00
committed by hjk
parent 720eb1df9e
commit 584ac02a48

View File

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