Fix crash when layout argument is null.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=706975
This commit is contained in:
parent
bb25f62e55
commit
536d3749c1
@ -89,7 +89,9 @@ void LayoutItem::setLayout(Layout* layout)
|
||||
}
|
||||
|
||||
d->layout = layout;
|
||||
layout->setParent(this);
|
||||
|
||||
if ( layout )
|
||||
layout->setParent(this);
|
||||
}
|
||||
|
||||
Layout* LayoutItem::layout() const
|
||||
|
Loading…
Reference in New Issue
Block a user