just check for icon existence, no matter if it has a qicon or a svg set

fixes popup/complete switch when the panel gets resized

svn path=/trunk/KDE/kdelibs/; revision=1212674
This commit is contained in:
Marco Martin 2011-01-07 22:02:36 +00:00
parent a757529178
commit faa7b0abd1

View File

@ -237,7 +237,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
(f == Plasma::Vertical || f == Plasma::Horizontal))) {
QGraphicsLinearLayout *lay = dynamic_cast<QGraphicsLinearLayout *>(q->layout());
if (icon && !icon->icon().isNull() && lay && lay->count() > 0) {
if (icon && lay && lay->count() > 0) {
lay->removeAt(0);
}