Fix incorrectly colored values that did not change.
authorJohannes Sixt <johannes.sixt@telecom.at>
Sun, 10 Dec 2006 21:11:25 +0000 (10 22:11 +0100)
committerJohannes Sixt <johannes.sixt@telecom.at>
Sun, 10 Dec 2006 21:11:25 +0000 (10 22:11 +0100)
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.

kdbg/exprwnd.cpp

index 93492da..8d7640e 100644 (file)
@@ -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);
 }