Make sure reporting thread is executed by GUI thread.

This commit is contained in:
Gerhard Hoffmann 2024-02-02 13:39:00 +01:00
parent e7f45251a9
commit 287106d8f3

View File

@ -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()) {