VariablesView: Use Notify{NodesCleared,TableModelReset}().

This commit is contained in:
Rene Gollent 2013-05-15 09:53:04 -04:00
parent f3bf3eb0d4
commit ad6158096c

View File

@ -935,11 +935,12 @@ VariablesView::VariableTableModel::SetStackFrame(Thread* thread,
for (int32 i = 0; i < count; i++)
fNodes.ItemAt(i)->ReleaseReference();
fNodes.MakeEmpty();
NotifyNodesRemoved(TreeTablePath(), 0, count);
}
if (stackFrame == NULL)
if (stackFrame == NULL) {
NotifyNodesCleared();
return;
}
ValueNodeContainer* container = fNodeManager->GetContainer();
AutoLocker<ValueNodeContainer> containerLocker(container);
@ -952,6 +953,8 @@ VariablesView::VariableTableModel::SetStackFrame(Thread* thread,
// so those won't invoke our callback hook. Add them directly here.
ValueNodeChildrenCreated(child->Node());
}
NotifyTableModelReset();
}