From 3ecd0da73e8ccc668b69c3b13a637ba69f46464e Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Sun, 21 Sep 2008 13:13:20 +0000 Subject: [PATCH] Any PopupApplet that manages its appearance was failing if it happened to use a layout. I guess my applet is the only one attempting to do so. ;) This code should perhaps be moved elsewhere? I can't tell what its purpose is from looking at the surrounding code - I just know that it shouldn't be removing items from my layout. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863216 --- popupapplet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index bfa751d5f..255e8ed9b 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -125,7 +125,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) if (constraints & Plasma::FormFactorConstraint || (constraints & Plasma::SizeConstraint && (f == Plasma::Vertical || f == Plasma::Horizontal))) { - if (lay) { + if (icon && lay) { lay->removeAt(0); }