mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-21 11:22:06 +08:00
HOTFIX: use Q_Q instead of q_ptr directly.
This commit is contained in:
parent
27df0ec8d0
commit
7a3858a214
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user