Tracker: Reset title view state after making column list empty.
Fixes #17899.
This commit is contained in:
@@ -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++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user