use the API, luke!
This commit is contained in:
parent
eb871eca6a
commit
5f0daaec50
@ -548,7 +548,7 @@ void WallpaperPrivate::newRenderCompleted(WallpaperRenderThread *currentRenderer
|
|||||||
int resizeMethod, const QColor &color)
|
int resizeMethod, const QColor &color)
|
||||||
{
|
{
|
||||||
q->disconnect(currentRenderer, SIGNAL(done(WallpaperRenderThread*,int,QImage,QString,QSize,int,QColor)),
|
q->disconnect(currentRenderer, SIGNAL(done(WallpaperRenderThread*,int,QImage,QString,QSize,int,QColor)),
|
||||||
q, SLOT(newRenderCompleted(WallpaperRenderThread*,int,QImage,QString,QSize,int,QColor)));
|
q, SLOT(newRenderCompleted(WallpaperRenderThread*,int,QImage,QString,QSize,int,QColor)));
|
||||||
|
|
||||||
if (!s_renderQueue.isEmpty()) {
|
if (!s_renderQueue.isEmpty()) {
|
||||||
while (!s_renderQueue.isEmpty()) {
|
while (!s_renderQueue.isEmpty()) {
|
||||||
@ -566,11 +566,7 @@ void WallpaperPrivate::newRenderCompleted(WallpaperRenderThread *currentRenderer
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < s_renderers.size(); i++) {
|
s_renderers.removeAll(currentRenderer);
|
||||||
if (s_renderers[i] == currentRenderer){
|
|
||||||
s_renderers.removeAt(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
currentRenderer->deleteLater();
|
currentRenderer->deleteLater();
|
||||||
currentRenderer = 0;
|
currentRenderer = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user