if an svg is set for the icon switch to the full view on the desktop as well

svn path=/trunk/KDE/kdelibs/; revision=1115279
This commit is contained in:
Marco Martin 2010-04-15 20:30:14 +00:00
parent fbe946ca4c
commit b6f75d6e46

View File

@ -271,7 +271,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
}
//Applet on desktop
if (icon && !icon->icon().isNull() && ((f != Plasma::Vertical && f != Plasma::Horizontal) ||
if (icon && (!icon->svg().isEmpty() || !icon->icon().isNull()) && ((f != Plasma::Vertical && f != Plasma::Horizontal) ||
((f == Plasma::Vertical && parentSize.width() >= minimum.width()) ||
(f == Plasma::Horizontal && parentSize.height() >= minimum.height())))) {
//kDebug() << "we are expanding the popupapplet";