don't keep threads around forever, let them finish

svn path=/trunk/KDE/kdelibs/; revision=958272
This commit is contained in:
Aaron J. Seigo 2009-04-23 16:40:18 +00:00
parent 44502959b8
commit 977464bb65

View File

@ -117,7 +117,7 @@ void WallpaperRenderThread::run()
if (file.isEmpty() || !QFile::exists(file)) { if (file.isEmpty() || !QFile::exists(file)) {
emit done(token, result, file, size, method, color); emit done(token, result, file, size, method, color);
continue; break;
} }
QPoint pos(0, 0); QPoint pos(0, 0);
@ -251,7 +251,7 @@ void WallpaperRenderThread::run()
for (int y = pos.y(); y < size.height(); y += scaledSize.height()) { for (int y = pos.y(); y < size.height(); y += scaledSize.height()) {
p.drawImage(QPoint(x, y), img); p.drawImage(QPoint(x, y), img);
if (m_restart) { if (m_restart) {
goto endLoop; continue;
} }
} }
} }
@ -262,7 +262,7 @@ void WallpaperRenderThread::run()
// signal we're done // signal we're done
emit done(token, result, file, size, method, color); emit done(token, result, file, size, method, color);
endLoop: continue; break;
} }
} }