items were getting added to the same layout more than once. now that the desktop actually knows what its layout is, this screws things up pretty badly. so fix that.

however, the panel is now screwed and will be until i write a proper layout for it. be warned: i really don't want to hear about the panel until then.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735280
This commit is contained in:
Aaron J. Seigo 2007-11-11 09:22:17 +00:00
parent 3f43d45c71
commit f242476e72

View File

@ -110,6 +110,10 @@ Layout* LayoutItem::layout() const
void LayoutItem::setManagingLayout(Layout* layout)
{
if (layout == d->managingLayout) {
return;
}
if (d->managingLayout) {
d->managingLayout->removeItem(this);
}