From 3e3b1450f975b1cffcb26b1993c7137b38141f30 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 11 Aug 2008 18:15:37 +0000 Subject: [PATCH] hide the icon when we are in the desktop svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845463 --- popupapplet.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/popupapplet.cpp b/popupapplet.cpp index c719e0988..15faf38ce 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -142,6 +142,10 @@ void PopupApplet::constraintsEvent(Plasma::Constraints constraints) switch (formFactor()) { case Plasma::Planar: case Plasma::MediaCenter: { + if (d->icon) { + d->icon->hide(); + } + if (d->savedAspectRatio != Plasma::InvalidAspectRatioMode) { setAspectRatioMode(d->savedAspectRatio); } @@ -182,6 +186,10 @@ void PopupApplet::constraintsEvent(Plasma::Constraints constraints) d->savedAspectRatio = aspectRatioMode(); setAspectRatioMode(Plasma::ConstrainedSquare); + if (d->icon) { + d->icon->show(); + } + if (d->proxy) { d->proxy->setWidget(0); // prevent it from deleting our widget! delete d->proxy;