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:
@@ -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,11 +737,17 @@ BListView::CountItems() const
|
|||||||
void
|
void
|
||||||
BListView::MakeEmpty()
|
BListView::MakeEmpty()
|
||||||
{
|
{
|
||||||
|
if (fList.IsEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
_DeselectAll(-1, -1);
|
_DeselectAll(-1, -1);
|
||||||
fList.MakeEmpty();
|
fList.MakeEmpty();
|
||||||
|
|
||||||
|
if (Window()) {
|
||||||
|
_FixupScrollBar();
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// IsEmpty
|
// IsEmpty
|
||||||
bool
|
bool
|
||||||
|
|||||||
Reference in New Issue
Block a user