MakeEmpty() now also calls _FixupScrollBar() - this fixes bug #1558.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7e9f5d25d3
commit
67e4704330
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2006, Haiku, Inc.
|
* Copyright (c) 2001-2007, Haiku, Inc.
|
||||||
* Distributed under the terms of the MIT license.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@ -737,10 +737,16 @@ BListView::CountItems() const
|
|||||||
void
|
void
|
||||||
BListView::MakeEmpty()
|
BListView::MakeEmpty()
|
||||||
{
|
{
|
||||||
|
if (fList.IsEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
_DeselectAll(-1, -1);
|
_DeselectAll(-1, -1);
|
||||||
fList.MakeEmpty();
|
fList.MakeEmpty();
|
||||||
|
|
||||||
Invalidate();
|
if (Window()) {
|
||||||
|
_FixupScrollBar();
|
||||||
|
Invalidate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsEmpty
|
// IsEmpty
|
||||||
|
Loading…
Reference in New Issue
Block a user