aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-03-13 16:32:00 +0100
committerhjk <[email protected]>2012-03-13 16:32:58 +0100
commit273d823e6bfb74d5977ca9e1d9313a3eca33def9 (patch)
tree3eac7e3b8a02afd21dc9238e4271c239a9da12c9 /src/plugins/debugger/watchhandler.cpp
parentcec4f7d524ca6bedd76d890d9a9d067f98e71ccb (diff)
debugger: fix red foreground color for changed values
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 95e066fd201..4eca5a19480 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -1089,8 +1089,9 @@ void WatchModel::insertData(const WatchData &data)
if (WatchItem *oldItem = findItem(data.iname, parent)) {
bool hadChildren = oldItem->hasChildren;
// Overwrite old entry.
+ bool hasChanged = oldItem->hasChanged(data);
oldItem->setData(data);
- oldItem->changed = data.hasChanged(*oldItem);
+ oldItem->changed = hasChanged;
oldItem->generation = m_generationCounter;
QModelIndex idx = watchIndex(oldItem);
emit dataChanged(idx, idx.sibling(idx.row(), 2));