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