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
This commit is contained in:
Jason Stubbs 2008-09-21 13:13:20 +00:00
parent 22a1c819b3
commit 3ecd0da73e

View File

@ -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);
}