CrewID 0 can't be scanned, so don't even try it

This commit is contained in:
Rafael 2016-04-07 17:28:27 +02:00
parent d42d8b9900
commit b06706a895

View file

@ -72,7 +72,8 @@ void DatabaseThread::scanCrewMembersList(QStringList crewList, int maxPages, int
{
foreach (const QString &crewID, crewList)
{
if (crewID != "0")
{
int currentPage = 0;
int foundPlayers = 0;
int totalPlayers = 1000;
@ -99,6 +100,7 @@ void DatabaseThread::scanCrewMembersList(QStringList crewList, int maxPages, int
if (netReply->isFinished())
{
QByteArray crewJson = netReply->readAll();
qDebug() << crewJson;
QJsonDocument crewDocument = QJsonDocument::fromJson(crewJson);
QJsonObject crewObject = crewDocument.object();
QVariantMap crewMap = crewObject.toVariantMap();
@ -137,4 +139,5 @@ void DatabaseThread::scanCrewMembersList(QStringList crewList, int maxPages, int
delete netManager;
}
}
}
}