HOTFIX: use Q_Q instead of q_ptr directly.

This commit is contained in:
Vlad Pyatnichenko 2016-03-22 01:32:20 +02:00
parent 27df0ec8d0
commit 7a3858a214

View File

@ -21,11 +21,13 @@ public:
void startServer(QString &serverName) void startServer(QString &serverName)
{ {
Q_Q(SingleApplication);
// Start a QLocalServer to listen for connections // Start a QLocalServer to listen for connections
server = new QLocalServer(); server = new QLocalServer();
QLocalServer::removeServer(serverName); QLocalServer::removeServer(serverName);
server->listen(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 #ifdef Q_OS_UNIX