diff options
author | Antonio Di Monaco <[email protected]> | 2019-10-07 11:19:40 +0200 |
---|---|---|
committer | Antonio Di Monaco <[email protected]> | 2019-10-08 08:11:20 +0000 |
commit | f0bd0a8baf5a3579a8b06fe6a8ea3cb41c9e59be (patch) | |
tree | 133c5136389e3cf9c62b6a53bc84500814fb6329 /src/plugins/debugger/watchhandler.cpp | |
parent | 5b127dd088b93f1ec8fc88966e015aaf40f6a4b4 (diff) |
Debugger: Fix missing watch highlight when the value changes
This patch fixes a regression introduced by
e95fd876aa62614fa991ab42c343adbb81acec73
Change-Id: I8cb277858ef6c63cd26c03417f9dfeb99d96cb45
Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 66d73e84bf9..07c43daafaa 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; } } |