only one quick time scan

This commit is contained in:
Rafael 2016-03-27 11:21:53 +02:00
parent 1c933f2435
commit c9ad204a2a

View file

@ -38,8 +38,7 @@ DatabaseThread::DatabaseThread(CrewDatabase *crewDB, QObject *parent) : QThread(
void DatabaseThread::run()
{
QEventLoop threadLoop;
dbtBegin:
QStringList crewList = crewDB->getCrews();
QStringList crewList;
// Quick time scan
if (crewList.length() <= 3)
@ -57,6 +56,9 @@ dbtBegin:
QTimer::singleShot(10000, &waitingLoop, SLOT(quit()));
waitingLoop.exec();
dbtBegin:
crewList = crewDB->getCrews();
// Long time scan
scanCrewMembersList(crewList, crewMaxPages, 10000);
emit playerNameUpdated();