move connecting the update() signal to right after we actually initialize the wallpaper; prevents the possibility of double paints we may not want

svn path=/trunk/KDE/kdelibs/; revision=1044507
This commit is contained in:
Aaron J. Seigo 2009-11-03 22:27:05 +00:00
parent 16b5fcc766
commit 7751044026
2 changed files with 2 additions and 2 deletions

View File

@ -1354,6 +1354,8 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
wallpaperConfig = KConfigGroup(&wallpaperConfig, "Wallpaper");
wallpaperConfig = KConfigGroup(&wallpaperConfig, w->pluginName());
w->restore(wallpaperConfig);
disconnect(w, SIGNAL(update(const QRectF&)), this, SLOT(updateRect(const QRectF&)));
connect(w, SIGNAL(update(const QRectF&)), this, SLOT(updateRect(const QRectF&)));
}
painter->save();

View File

@ -1829,8 +1829,6 @@ void Containment::setWallpaper(const QString &pluginName, const QString &mode)
d->wallpaper->setRenderingMode(mode);
if (newPlugin) {
connect(d->wallpaper, SIGNAL(update(const QRectF&)),
this, SLOT(updateRect(const QRectF&)));
cfg.writeEntry("wallpaperplugin", pluginName);
}