Don't destroy extenderitems that are being dragged around.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857487
This commit is contained in:
parent
73a1b6715e
commit
8d3ef3e367
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user