forked from qt-creator/qt-creator
debugger: better guess at engine capabilities in dummy engine
Change-Id: Ia37086a126df7f7d84b9509c54472c5d9be6b4ef Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -711,6 +711,7 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
const bool canHandleWatches = engineCapabilities & AddWatcherCapability;
|
||||
const DebuggerState state = engine->state();
|
||||
const bool canInsertWatches = state == InferiorStopOk
|
||||
|| state == DebuggerNotReady
|
||||
|| state == InferiorUnrunnable
|
||||
|| (state == InferiorRunOk && (engineCapabilities & AddWatcherWhileRunningCapability));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user