diff --git a/applet.cpp b/applet.cpp index 43fe0c0dc..e3a33766e 100644 --- a/applet.cpp +++ b/applet.cpp @@ -536,7 +536,7 @@ void Applet::setBackgroundHints(const BackgroundHints hints) if (d->shadow) { d->shadow->setVisible(true); } else { - shadow = new ShadowItem(this); + d->shadow = new ShadowItem(this); if (scene()) { scene()->addItem(d->shadow); d->shadow->show();