Fixed race condition drawing previews.

This commit is contained in:
Leonardo Zide 2017-01-24 19:49:49 -08:00
parent c1c88ea045
commit ec169c8263

View file

@ -231,8 +231,8 @@ void lcPartSelectionListModel::PartLoaded(PieceInfo* Info)
{
if (mParts[PartIdx].first == Info)
{
DrawPreview(PartIdx);
mRequestedPreviews.removeOne(PartIdx);
if (mRequestedPreviews.removeOne(PartIdx))
DrawPreview(PartIdx);
break;
}
}