Don't destroy extenderitems that are being dragged around.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857487
This commit is contained in:
Rob Scheepmaker 2008-09-05 14:16:55 +00:00
parent 73a1b6715e
commit 8d3ef3e367

View File

@ -522,6 +522,11 @@ uint ExtenderItem::sourceAppletId() const
void ExtenderItem::destroy()
{
if (d->mousePressed) {
//avoid being destroyed while we're being dragged.
return;
}
d->hostApplet()->config("ExtenderItems").deleteGroup(QString::number(d->extenderItemId));
if (d->extender) {
d->extender->d->removeExtenderItem(this);