Commit bbe886a0 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

ScreenEdge: fix double look-up

parent 9c41ec46
Pipeline #174384 passed with stage
in 32 minutes and 56 seconds
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment