Merge pull request #3464 from jamierocks/ftb/ignore-dud-packs
NOISSUE Ignore 'dud' FTB packs
This commit is contained in:
commit
ed11d33054
@ -206,6 +206,14 @@ void ListModel::packRequestFinished()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Since there is no guarantee that packs have a version, this will just
|
||||||
|
// ignore those "dud" packs.
|
||||||
|
if (pack.versions.empty())
|
||||||
|
{
|
||||||
|
qWarning() << "FTB Pack " << pack.id << " ignored. reason: lacking any versions";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
beginInsertRows(QModelIndex(), modpacks.size(), modpacks.size());
|
beginInsertRows(QModelIndex(), modpacks.size(), modpacks.size());
|
||||||
modpacks.append(pack);
|
modpacks.append(pack);
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
Loading…
Reference in New Issue
Block a user