From c4ba7c8e4f1cb127a6dd96b6231fefe7c2c87c01 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Thu, 26 Mar 2015 15:22:43 +0300 Subject: [PATCH] Moved set priority --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5895f7d..fbad59d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -71,7 +71,6 @@ MainWindow::MainWindow(QWidget *parent) : //them inherit parent's priority parserThread = new QThread(this); senderThread = new QThread(this); - senderThread->setPriority(QThread::TimeCriticalPriority); //Restore settings firstrun = !settings.value("core/firstrun").toBool(); //firstrun is inverted! @@ -153,6 +152,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(this, &MainWindow::injectCommand, senderWorker, &Sender::injectCommand); connect(this, &MainWindow::flushInjectionBuffer, senderWorker, &Sender::flushInjectionBuffer); senderThread->start(); + senderThread->setPriority(QThread::TimeCriticalPriority); //Timers init statusTimer->start();