ScreenEdge: fix double look-up

This commit is contained in:
Aleix Pol 2022-05-10 13:09:28 +02:00 committed by Aleix Pol Gonzalez
parent 9c41ec461e
commit bbe886a083

View file

@ -212,8 +212,7 @@ void Edge::unreserve()
}
void Edge::unreserve(QObject *object)
{
if (m_callBacks.contains(object)) {
m_callBacks.remove(object);
if (m_callBacks.remove(object) > 0) {
disconnect(object, &QObject::destroyed, this, qOverload<QObject *>(&Edge::unreserve));
unreserve();
}