From f0bd0a8baf5a3579a8b06fe6a8ea3cb41c9e59be Mon Sep 17 00:00:00 2001 From: Antonio Di Monaco Date: Mon, 7 Oct 2019 11:19:40 +0200 Subject: Debugger: Fix missing watch highlight when the value changes This patch fixes a regression introduced by e95fd876aa62614fa991ab42c343adbb81acec73 Change-Id: I8cb277858ef6c63cd26c03417f9dfeb99d96cb45 Reviewed-by: Christian Stenger --- src/plugins/debugger/watchhandler.cpp | 4 ++-- 1 file 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; } } -- cgit v1.2.3