From 5c0767ca6f0e158cfa7869d6f415f2c024ad84c1 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Tue, 26 Oct 2010 04:48:58 +0000 Subject: [PATCH] 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 --- src/preferences/media/MediaWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/preferences/media/MediaWindow.cpp b/src/preferences/media/MediaWindow.cpp index 6b2f931152..3f3efcd247 100644 --- a/src/preferences/media/MediaWindow.cpp +++ b/src/preferences/media/MediaWindow.cpp @@ -306,6 +306,8 @@ MediaWindow::InitMedia(bool first) B_TRANSLATE("Ready for use" B_UTF8_ELLIPSIS)); } + while (fListView->CountItems() > 0) + delete static_cast(fListView->RemoveItem((int32)0)); _EmptyNodeLists(); // Grab Media Info