Tracker: Reset title view state after making column list empty.

Fixes #17899.
This commit is contained in:
Augustin Cavalier
2022-09-09 15:28:43 -04:00
parent 9f8c5aabe3
commit f61067a023
+5
View File
@@ -387,6 +387,9 @@ void
BPoseView::RestoreColumnState(AttributeStreamNode* node) BPoseView::RestoreColumnState(AttributeStreamNode* node)
{ {
fColumnList->MakeEmpty(); fColumnList->MakeEmpty();
if (fTitleView != NULL)
fTitleView->Reset();
if (node != NULL) { if (node != NULL) {
const char* columnsAttr; const char* columnsAttr;
const char* columnsAttrForeign; const char* columnsAttrForeign;
@@ -450,6 +453,8 @@ void
BPoseView::RestoreColumnState(const BMessage &message) BPoseView::RestoreColumnState(const BMessage &message)
{ {
fColumnList->MakeEmpty(); fColumnList->MakeEmpty();
if (fTitleView != NULL)
fTitleView->Reset();
BObjectList<BColumn> tempSortedList; BObjectList<BColumn> tempSortedList;
for (int32 index = 0; ; index++) { for (int32 index = 0; ; index++) {