only one quick time scan
This commit is contained in:
parent
1c933f2435
commit
c9ad204a2a
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue