Update singleapplication_p.cpp

Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
This commit is contained in:
dail8859 2020-12-23 15:42:56 -05:00 committed by GitHub
parent 99cd51d5a2
commit 5e7b302776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,8 +331,7 @@ void SingleApplicationPrivate::slotConnectionEstablished()
QObject::connect(nextConnSocket, &QLocalSocket::disconnected, nextConnSocket, &QLocalSocket::deleteLater); QObject::connect(nextConnSocket, &QLocalSocket::disconnected, nextConnSocket, &QLocalSocket::deleteLater);
QObject::connect(nextConnSocket, &QLocalSocket::destroyed, QObject::connect(nextConnSocket, &QLocalSocket::destroyed,
[nextConnSocket, this](QObject *obj){ [nextConnSocket, this](){
Q_UNUSED(obj)
connectionMap.remove(nextConnSocket); connectionMap.remove(nextConnSocket);
} }
); );