From ea26a9e693da8a3329113a8b0dfdb716eec0c2b2 Mon Sep 17 00:00:00 2001 From: APTX Date: Sat, 28 Mar 2009 12:36:26 +0100 Subject: [PATCH] - Some cleanup. --- mylistaddcommand.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mylistaddcommand.cpp b/mylistaddcommand.cpp index e8fa659..8f687eb 100644 --- a/mylistaddcommand.cpp +++ b/mylistaddcommand.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "anidbudpclient.h" @@ -143,6 +144,8 @@ qDebug() << "WTF?"; QByteArray MylistAddCommand::doHash(QString file) { qDebug() << "hash thread init"; + QThread::currentThread()->setPriority(QThread::LowPriority); + QFile f(file); if (!f.open(QIODevice::ReadOnly)) return QByteArray(); -- 2.52.0