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:
parent
16b5fcc766
commit
7751044026
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user