From: Johannes Sixt Date: Sun, 10 Dec 2006 21:11:25 +0000 (+0100) Subject: Fix incorrectly colored values that did not change. X-Git-Tag: kdbg-2.1.0-rc1~27 X-Git-Url: https://repo.or.cz/w/kdbg.git/commitdiff_plain/ba4c819c7f62d83fd9bc72c7dba71a8fc16dbc5c Fix incorrectly colored values that did not change. Member values of newly added variables were changed to red to indicate a change at the next stop, although the values actually did not changed. The reason is that the members introduced by c749f6d2606f9a2cdb94e423b2fbab7339d9a920 were not initialized correctly. --- diff --git a/kdbg/exprwnd.cpp b/kdbg/exprwnd.cpp index 93492da..8d7640e 100644 --- a/kdbg/exprwnd.cpp +++ b/kdbg/exprwnd.cpp @@ -24,11 +24,12 @@ VarTree::VarTree(VarTree* parent, QListViewItem* after, ExprValue* v) : m_type(0), m_exprIndex(0), m_exprIndexUseGuard(false), + m_baseValue(v->m_value), m_baseChanged(false), m_structChanged(false) { QListViewItem::setText(0, v->m_name); - QListViewItem::setText(1, v->m_value); + updateValueText(); setExpandable(m_varKind == VarTree::VKpointer); setOpen(v->m_initiallyExpanded); }