hide the icon when we are in the desktop

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845463
This commit is contained in:
Marco Martin 2008-08-11 18:15:37 +00:00
parent 5f27b7bb30
commit 3e3b1450f9

View File

@ -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;