don't try and access items that aren't there

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792328
This commit is contained in:
Aaron J. Seigo 2008-03-31 20:36:32 +00:00
parent 771fd1804b
commit 41ad617765

View File

@ -117,7 +117,9 @@ void BorderLayout::relayout()
void BorderLayout::releaseManagedItems()
{
foreach (Plasma::LayoutItem *item, d->itemPositions) {
item->unsetManagingLayout(this);
if (item) {
item->unsetManagingLayout(this);
}
}
}