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 9ef2c42b42
commit d65132f92f

View File

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