diff options
author | hjk <[email protected]> | 2012-01-12 20:28:17 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2012-01-16 16:33:43 +0100 |
commit | 496e9fafd0a321a923e96bdddd03617feb18f2ad (patch) | |
tree | 07684c3d835450fdd0b5bc15e3e863d2698e7d46 /src/plugins/debugger/watchhandler.cpp | |
parent | 1c1b3840c594004801817befdd192c19f7f659c4 (diff) |
debugger: replace static capability check by something potentially dynamic
This does not yet use the potential.
Change-Id: I087311fb7d59b46e49f65a84c4420c72a1227ebb
Reviewed-by: Aurindam Jana <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 366877071c4..b744e1765d2 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -919,7 +919,7 @@ Qt::ItemFlags WatchModel::flags(const QModelIndex &idx) const // Disable editing if debuggee is positively running. const bool isRunning = engine() && engine()->state() == InferiorRunOk; - if (isRunning && engine() && !(engine()->debuggerCapabilities() & AddWatcherWhileRunningCapability)) + if (isRunning && engine() && !engine()->hasCapability(AddWatcherWhileRunningCapability)) return notEditable; const WatchData &data = *watchItem(idx); |