From 7a3858a2148b60500f7a8ce26b5047ff34bee42c Mon Sep 17 00:00:00 2001 From: Vlad Pyatnichenko Date: Tue, 22 Mar 2016 01:32:20 +0200 Subject: [PATCH] HOTFIX: use Q_Q instead of q_ptr directly. --- singleapplication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/singleapplication.cpp b/singleapplication.cpp index 32269d4..1c0d921 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -21,11 +21,13 @@ public: void startServer(QString &serverName) { + Q_Q(SingleApplication); + // Start a QLocalServer to listen for connections server = new QLocalServer(); QLocalServer::removeServer(serverName); server->listen(serverName); - QObject::connect(server, SIGNAL(newConnection()), q_ptr, SLOT(slotConnectionEstablished())); + QObject::connect(server, SIGNAL(newConnection()), q, SLOT(slotConnectionEstablished())); } #ifdef Q_OS_UNIX