Make sure reporting thread is executed by GUI thread.
This commit is contained in:
parent
e7f45251a9
commit
287106d8f3
@ -4548,6 +4548,7 @@ bool hwapi::dcDownloadReportThreadStart() { // only start reporting thread
|
||||
if (cnt > 0) {
|
||||
m_reportingThread = new ReportingThread(this);
|
||||
if (m_reportingThread) {
|
||||
m_reportingThread->moveToThread(QApplication::instance()->thread());
|
||||
m_reportingThread->start();
|
||||
cnt = 10;
|
||||
while (--cnt > 0 && !dcDownloadReportThreadRunning()) {
|
||||
|
Loading…
Reference in New Issue
Block a user