From 47b972c8fb819d9c1b8772cf10b721414fc99bce Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 8 Sep 2020 12:17:59 +0100 Subject: [PATCH] Set priority only after thread is running --- qrenderdoc/Windows/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/MainWindow.cpp b/qrenderdoc/Windows/MainWindow.cpp index ca104998b8..20a2e6e1a2 100644 --- a/qrenderdoc/Windows/MainWindow.cpp +++ b/qrenderdoc/Windows/MainWindow.cpp @@ -261,9 +261,9 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai QEventLoop loop; loop.exec(); }); - m_NetManagerThread->thread()->setPriority(QThread::LowPriority); m_NetManagerThread->moveObjectToThread(m_NetWorker); m_NetManagerThread->start(); + m_NetManagerThread->thread()->setPriority(QThread::LowPriority); // set up cross-thread signal/slot connections QObject::connect(this, &MainWindow::networkRequestGet, m_NetWorker, &NetworkWorker::get,