diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-10-11 12:59:49 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-10-11 12:59:49 +0200 |
commit | 82f80d5403c8eb60e36ac1692df2f299e79a6e35 (patch) | |
tree | 2d5e59d07fb1b9bf312afebb788e208ceb4ef017 /src/plugins/debugger/watchhandler.cpp | |
parent | 6d0f0c7cd3e71d9dfe31ac37ee43826a5c046d35 (diff) | |
download | qt-creator-82f80d5403c8eb60e36ac1692df2f299e79a6e35.tar.gz |
Debugger[CDB]: Do not evaluate watch expressions at all.
setError() on them instead (should there be any from
a session mixup). Give the session engine watcher
capabilities and ensure 'Remove watch item' is enabled
for the session engine by checking the debugger state.
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 1c5b6cdad9..00dd7c3a4b 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -704,6 +704,9 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const case EngineActionsEnabledRole: return engine()->debuggerActionsEnabled(); + + case EngineStateRole: + return QVariant(int(engine()->state())); } const WatchItem *item = watchItem(idx); |