Make sure reporting thread is executed by GUI thread.
This commit is contained in:
		@@ -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()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user