From d672353ff9788e14ab260587cc95845948b7f12d Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 17 Jan 2016 13:03:57 +0800 Subject: [PATCH] fixed single instance checking --- Telegram/SourceFiles/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/application.cpp b/Telegram/SourceFiles/application.cpp index 60f831665..686db06b7 100644 --- a/Telegram/SourceFiles/application.cpp +++ b/Telegram/SourceFiles/application.cpp @@ -149,7 +149,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) connect(&_localSocket, SIGNAL(error(QLocalSocket::LocalSocketError)), this, SLOT(socketError(QLocalSocket::LocalSocketError))); connect(&_localSocket, SIGNAL(bytesWritten(qint64)), this, SLOT(socketWritten(qint64))); connect(&_localSocket, SIGNAL(readyRead()), this, SLOT(socketReading())); - connect(&_localSocket, SIGNAL(newConnection()), this, SLOT(newInstanceConnected())); + connect(&_localServer, SIGNAL(newConnection()), this, SLOT(newInstanceConnected())); #ifndef TDESKTOP_DISABLE_AUTOUPDATE connect(&_updateCheckTimer, SIGNAL(timeout()), this, SLOT(updateCheck()));