diff options
author | Vlad Pyatnichenko <partizanu3@gmail.com> | 2016-03-22 01:32:20 +0200 |
---|---|---|
committer | Vlad Pyatnichenko <partizanu3@gmail.com> | 2016-03-22 01:32:20 +0200 |
commit | 7a3858a2148b60500f7a8ce26b5047ff34bee42c (patch) | |
tree | 3f517372097a095c95815866741453104694bf90 | |
parent | HOTFIX: added Qt's modules prefixes to #include statements. (diff) | |
download | singleapplication-7a3858a2148b60500f7a8ce26b5047ff34bee42c.tar.xz |
HOTFIX: use Q_Q instead of q_ptr directly.
-rw-r--r-- | singleapplication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 |