HaikuDepot: Also lock the model when updating the list

This commit is contained in:
Stephan Aßmus
2013-09-17 14:42:01 +02:00
committed by Rene Gollent
parent 7eec822d5e
commit b9898c45f4
+1
View File
@@ -154,6 +154,7 @@ MainWindow::_AdoptModel()
fPackageListView->Clear();
for (int32 i = 0; i < fVisiblePackages.CountItems(); i++) {
BAutolock _(fModel.Lock());
fPackageListView->AddPackage(fVisiblePackages.ItemAtFast(i));
}
}