fix possible crash

CCMAIL:slashdevdsp@gmail.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=744440
This commit is contained in:
Aaron J. Seigo 2007-12-03 16:11:27 +00:00
parent 1a9b4524a1
commit d3c5f72bab

View File

@ -61,6 +61,10 @@ void FreeLayout::addItem(LayoutItem *item)
void FreeLayout::removeItem(LayoutItem *item)
{
if (!item) {
return;
}
d->children.removeAll(item);
item->unsetManagingLayout(this);
}