From faa7b0abd1089095600a5364df162d0ce211a1ac Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 7 Jan 2011 22:02:36 +0000 Subject: [PATCH] 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 --- popupapplet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index 329d5d7d7..16346b2ce 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -237,7 +237,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) (f == Plasma::Vertical || f == Plasma::Horizontal))) { QGraphicsLinearLayout *lay = dynamic_cast(q->layout()); - if (icon && !icon->icon().isNull() && lay && lay->count() > 0) { + if (icon && lay && lay->count() > 0) { lay->removeAt(0); }