Fix a regression I caused in the media preflet with r39070 by remembering to clean out our BListView when (re)initializing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39150 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
768734a831
commit
5c0767ca6f
@ -306,6 +306,8 @@ MediaWindow::InitMedia(bool first)
|
|||||||
B_TRANSLATE("Ready for use" B_UTF8_ELLIPSIS));
|
B_TRANSLATE("Ready for use" B_UTF8_ELLIPSIS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (fListView->CountItems() > 0)
|
||||||
|
delete static_cast<MediaListItem*>(fListView->RemoveItem((int32)0));
|
||||||
_EmptyNodeLists();
|
_EmptyNodeLists();
|
||||||
|
|
||||||
// Grab Media Info
|
// Grab Media Info
|
||||||
|
Loading…
Reference in New Issue
Block a user