From ad6158096cc2a81e355597469c319b05a27eb7d8 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Wed, 15 May 2013 09:53:04 -0400 Subject: [PATCH] VariablesView: Use Notify{NodesCleared,TableModelReset}(). --- .../user_interface/gui/team_window/VariablesView.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp index 1e1483d08a..7c84b58492 100644 --- a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp @@ -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 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(); }