debugger: allow insertion of evaluated expressions for core files

Task-number: QTCREATORBUG-5693
Change-Id: I8b6a5e0cd7956dab92270cae8994da3303fcf8e9
Reviewed-on: http://codereview.qt.nokia.com/2558
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-08-03 12:40:28 +02:00
committed by hjk
parent fe6bbc29f4
commit 9f82bc25a4

View File

@@ -706,6 +706,7 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
const bool canHandleWatches = engineCapabilities & AddWatcherCapability;
const DebuggerState state = engine->state();
const bool canInsertWatches = state == InferiorStopOk
|| state == InferiorUnrunnable
|| (state == InferiorRunOk && engine->acceptsWatchesWhileRunning());
QMenu breakpointMenu;