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() | ||||
| { | ||||
|     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(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue