make sure we get a layout, this fixes the sizing of applets

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=722674
This commit is contained in:
Aaron J. Seigo 2007-10-07 21:40:42 +00:00
parent 1fce16d307
commit ae9727817f

View File

@ -268,7 +268,7 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
void Containment::setFormFactor(FormFactor formFactor) void Containment::setFormFactor(FormFactor formFactor)
{ {
if (d->formFactor == formFactor) { if (d->formFactor == formFactor && d->layout) {
return; return;
} }