From bb7576710564e57f85d666833209a3fc87978dc9 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 9 Mar 2010 00:12:31 +0000 Subject: [PATCH] don't remove an item that isn't in the layout svn path=/trunk/KDE/kdelibs/; revision=1100924 --- popupapplet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index cf417f4c7..016642a43 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -219,7 +219,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) { + if (icon && !icon->icon().isNull() && lay && lay->count() > 0) { lay->removeAt(0); }