summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Di Monaco <antonio.di.monaco@sap.com>2019-10-07 11:19:40 +0200
committerAntonio Di Monaco <antonio.di.monaco@sap.com>2019-10-08 08:11:20 +0000
commitf0bd0a8baf5a3579a8b06fe6a8ea3cb41c9e59be (patch)
tree133c5136389e3cf9c62b6a53bc84500814fb6329
parent5b127dd088b93f1ec8fc88966e015aaf40f6a4b4 (diff)
downloadqt-creator-f0bd0a8baf5a3579a8b06fe6a8ea3cb41c9e59be.tar.gz
Debugger: Fix missing watch highlight when the value changes
This patch fixes a regression introduced by e95fd876aa62614fa991ab42c343adbb81acec73 Change-Id: I8cb277858ef6c63cd26c03417f9dfeb99d96cb45 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/debugger/watchhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 66d73e84bf..07c43daafa 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -907,9 +907,9 @@ static QColor valueColor(const WatchItem *item, int column)
color = Theme::Debugger_WatchItem_ValueInvalid;
else if (!model->m_contentsValid && !item->isInspect())
color = Theme::Debugger_WatchItem_ValueInvalid;
- else if (column == 1 && item->value.isEmpty()) // This might still show 0x...
+ else if (item->value.isEmpty()) // This might still show 0x...
color = Theme::Debugger_WatchItem_ValueInvalid;
- else if (column == 1 && item->value != model->m_valueCache.value(item->iname))
+ else if (item->value != model->m_valueCache.value(item->iname))
color = Theme::Debugger_WatchItem_ValueChanged;
}
}