From c9ad204a2a2f26420e079b38d0adf4b402465720 Mon Sep 17 00:00:00 2001 From: Rafael Date: Sun, 27 Mar 2016 11:21:53 +0200 Subject: [PATCH] only one quick time scan --- DatabaseThread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DatabaseThread.cpp b/DatabaseThread.cpp index 90ef92a..73be52d 100755 --- a/DatabaseThread.cpp +++ b/DatabaseThread.cpp @@ -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();