diff --git a/applet.cpp b/applet.cpp index cf4f89c01..9a7c906e2 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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(); diff --git a/containment.cpp b/containment.cpp index c97bed789..2697986d2 100644 --- a/containment.cpp +++ b/containment.cpp @@ -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); }