HaikuDepot: Also lock the model when updating the list

This commit is contained in:
Stephan Aßmus
2013-09-16 22:18:21 +02:00
parent 5f82742858
commit b0fbddbd03
+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));
}
}