Avoid making extenderitems dissapear when moving them from an internal:extender to the

same internal:extender.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=861903
This commit is contained in:
Rob Scheepmaker 2008-09-17 13:30:18 +00:00
parent b424645a31
commit ec98e6c6ba

View File

@ -416,6 +416,13 @@ QIcon ExtenderItem::icon() const
void ExtenderItem::setExtender(Extender *extender, const QPointF &pos)
{
if (extender == d->extender) {
//We're not moving between extenders, so just insert this item back into the layout.
setParentItem(extender);
extender->d->addExtenderItem(this, pos);
return;
}
//We are switching extender...
//first remove this item from the old extender.
if (d->extender) {