From 287106d8f3a999e604fc39f529344669f55f5e40 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 2 Feb 2024 13:39:00 +0100 Subject: [PATCH] Make sure reporting thread is executed by GUI thread. --- src/hwapi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hwapi.cpp b/src/hwapi.cpp index 20bc059..8027197 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -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()) {