don't remove the applet itself from the scenevent filter when deregistering as a drag handle

the event filter is also used for things like the applet handle
This commit is contained in:
Aaron Seigo 2011-07-19 09:34:34 +02:00
parent 7c3949f204
commit 239b5a5d10

View File

@ -1651,7 +1651,9 @@ void Applet::unregisterAsDragHandle(QGraphicsItem *item)
}
if (d->registeredAsDragHandle.remove(item)) {
item->removeSceneEventFilter(this);
if (item != this) {
item->removeSceneEventFilter(this);
}
}
}