added name updating while window open
This commit is contained in:
parent
49d29aa3ec
commit
4334537966
5 changed files with 41 additions and 7 deletions
|
@ -46,7 +46,7 @@ void DatabaseThread::run()
|
|||
QString memberListUrl = "http://socialclub.rockstargames.com/crewsapi/GetMembersList?crewId=" + crewID;
|
||||
|
||||
QNetworkRequest netRequest(memberListUrl);
|
||||
netRequest.setRawHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0");
|
||||
netRequest.setRawHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0 gta5sync/1.0");
|
||||
netRequest.setRawHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
|
||||
netRequest.setRawHeader("Accept-Language", "en-US;q=0.5,en;q=0.3");
|
||||
netRequest.setRawHeader("Connection", "keep-alive");
|
||||
|
@ -84,6 +84,8 @@ void DatabaseThread::run()
|
|||
}
|
||||
}
|
||||
|
||||
emit playerNameUpdated();
|
||||
|
||||
QTimer::singleShot(300000, &threadLoop, SLOT(quit()));
|
||||
threadLoop.exec();
|
||||
goto dbtBegin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue