aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--singleapplication.cpp4
1 files changed, 3 insertions, 1 deletions
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();
}