ScreenEdge: fix double look-up

master
Aleix Pol 2 years ago committed by Aleix Pol Gonzalez
parent 9c41ec461e
commit bbe886a083

@ -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();
}

Loading…
Cancel
Save