From 574e029254262a191a67b82050e2ddbfb19e1352 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Wed, 11 Sep 2013 15:51:06 +0200 Subject: [PATCH] Setting thread priority is only possible after calling start() --- src/mirall/folder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mirall/folder.cpp b/src/mirall/folder.cpp index d6b2d8783..f47c82f47 100644 --- a/src/mirall/folder.cpp +++ b/src/mirall/folder.cpp @@ -566,7 +566,6 @@ void Folder::startSync(const QStringList &pathList) qDebug() << "*** Start syncing"; _thread = new QThread(this); - _thread->setPriority(QThread::LowPriority); setIgnoredFiles(); _csync = new CSyncThread( _csync_ctx, path(), QUrl(ownCloudInfo::instance()->webdavUrl() + secondPath()).path()); _csync->moveToThread(_thread); @@ -589,6 +588,7 @@ void Folder::startSync(const QStringList &pathList) connect(_csync, SIGNAL(transmissionProgress(Progress::Info)), this, SLOT(slotTransmissionProgress(Progress::Info))); _thread->start(); + _thread->setPriority(QThread::LowPriority); QMetaObject::invokeMethod(_csync, "startSync", Qt::QueuedConnection); // disable events until syncing is done