Clear the navigation menu before populating it. Fixes ticket #5079.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34497 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2009-12-05 00:06:32 +00:00
parent 08d9b6d462
commit 5b41cd61e6

View File

@ -2254,6 +2254,8 @@ BContainerWindow::PopulateMoveCopyNavMenu(BNavMenu *navMenu, uint32 what,
int32 volumeCount = 0;
navMenu->RemoveItems(0, navMenu->CountItems(), true);
// count persistent writable volumes
volumeRoster.Rewind();
while (volumeRoster.GetNextVolume(&volume) == B_OK)