ScreenEdge: fix double look-up
This commit is contained in:
parent
9c41ec461e
commit
bbe886a083
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue