aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.cpp
diff options
context:
space:
mode:
authorVlad Pyatnichenko <partizanu3@gmail.com>2016-03-22 01:32:20 +0200
committerVlad Pyatnichenko <partizanu3@gmail.com>2016-03-22 01:32:20 +0200
commit7a3858a2148b60500f7a8ce26b5047ff34bee42c (patch)
tree3f517372097a095c95815866741453104694bf90 /singleapplication.cpp
parentHOTFIX: added Qt's modules prefixes to #include statements. (diff)
downloadsingleapplication-7a3858a2148b60500f7a8ce26b5047ff34bee42c.tar.xz
HOTFIX: use Q_Q instead of q_ptr directly.
Diffstat (limited to 'singleapplication.cpp')
-rw-r--r--singleapplication.cpp4
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