diff --git a/singleapplication.cpp b/singleapplication.cpp index 516e6ed..4858f96 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -42,6 +42,8 @@ SingleApplication::~SingleApplication() */ void SingleApplication::slotConnectionEstablished() { - server->nextPendingConnection(); + QLocalSocket *socket = server->nextPendingConnection(); + socket->close(); + delete socket; emit showUp(); }