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:
parent
771fd1804b
commit
41ad617765
@ -117,7 +117,9 @@ void BorderLayout::relayout()
|
||||
void BorderLayout::releaseManagedItems()
|
||||
{
|
||||
foreach (Plasma::LayoutItem *item, d->itemPositions) {
|
||||
item->unsetManagingLayout(this);
|
||||
if (item) {
|
||||
item->unsetManagingLayout(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user