Don't call setPriority on a non-started thread.

QThread documentation says this doesn't do anything, so it's just
pointless. More than that, though, it's printing a warning.

svn path=/trunk/KDE/kdelibs/; revision=1146963
This commit is contained in:
Thiago Macieira 2010-07-07 07:22:19 +00:00
parent 9571b898bb
commit b94b7b1d54

View File

@ -35,8 +35,6 @@ WallpaperRenderThread::WallpaperRenderThread(QObject *parent)
{
m_abort = false;
m_restart = false;
setPriority(QThread::LowPriority);
}
WallpaperRenderThread::~WallpaperRenderThread()
@ -74,7 +72,7 @@ int WallpaperRenderThread::render(const QString &file,
}
if (!isRunning()) {
start();
start(QThread::LowPriority);
} else {
m_condition.wakeOne();
}