diff --git a/applet.cpp b/applet.cpp index 41aee9c75..d97f90749 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1620,7 +1620,9 @@ void Applet::unregisterAsDragHandle(QGraphicsItem *item) } if (d->registeredAsDragHandle.remove(item)) { - item->removeSceneEventFilter(this); + if (item != this) { + item->removeSceneEventFilter(this); + } } } @@ -1750,7 +1752,6 @@ bool Applet::sceneEventFilter(QGraphicsItem *watched, QEvent *event) break; } - return false; } switch (event->type()) { @@ -2346,11 +2347,15 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value) break; case ItemParentHasChanged: { - Containment *c = containment(); - if (c && c->containmentType() == Containment::DesktopContainment) { - installSceneEventFilter(this); - } else { + if (isContainment()) { removeSceneEventFilter(this); + } else { + Containment *c = containment(); + if (c && c->containmentType() == Containment::DesktopContainment) { + installSceneEventFilter(this); + } else { + removeSceneEventFilter(this); + } } } break; diff --git a/data/services/plasma.protocol b/data/services/plasma.protocol index 86b0a7ae2..89cde2785 100644 --- a/data/services/plasma.protocol +++ b/data/services/plasma.protocol @@ -17,6 +17,7 @@ Description[de]=Ein Protokoll für Plasma-Dienste Description[el]=Ένα πρωτόκολλο υπηρεσιών Plasma Description[es]=Un protocolo para los servicios de Plasma Description[et]=Plasma teenuste protokoll +Description[fi]=Plasma-palvelujen protokolla Description[hr]=Protokol za servise u Plasmi Description[hu]=Protokoll a Plazma-szolgáltatáshoz Description[ia]=un protocollo per servicios de Plasma diff --git a/private/wallpaperrenderthread_p.h b/private/wallpaperrenderthread_p.h index 81d4ba2a8..7a31d591d 100644 --- a/private/wallpaperrenderthread_p.h +++ b/private/wallpaperrenderthread_p.h @@ -78,5 +78,5 @@ private: } // namespace Plasma -Q_DECLARE_METATYPE(Plasma::WallpaperRenderRequest); +Q_DECLARE_METATYPE(Plasma::WallpaperRenderRequest) #endif // PLASMA_WALLPAPERRENDERTHREAD_P_H