fix possible crash
CCMAIL:slashdevdsp@gmail.com svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=744440
This commit is contained in:
parent
1a9b4524a1
commit
d3c5f72bab
@ -61,6 +61,10 @@ void FreeLayout::addItem(LayoutItem *item)
|
|||||||
|
|
||||||
void FreeLayout::removeItem(LayoutItem *item)
|
void FreeLayout::removeItem(LayoutItem *item)
|
||||||
{
|
{
|
||||||
|
if (!item) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
d->children.removeAll(item);
|
d->children.removeAll(item);
|
||||||
item->unsetManagingLayout(this);
|
item->unsetManagingLayout(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user