forked from qt-creator/qt-creator
Debugger: Fix missing watch highlight when the value changes
This patch fixes a regression introduced by
e95fd876aa
Change-Id: I8cb277858ef6c63cd26c03417f9dfeb99d96cb45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user