From 0419cc929c331f9837df62527c472e4428f82392 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Wed, 24 Oct 2018 01:39:52 +0300 Subject: [PATCH] Fix 'Run client' feature for local connection Signed-off-by: Vitalii Koshura --- clientgui/MainDocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 7a89f45173..82cefa6d94 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -651,7 +651,7 @@ int CMainDocument::ResetState() { int CMainDocument::Connect(const wxString& szComputer, int iPort, const wxString& szComputerPassword, const bool bDisconnect, const bool bUseDefaultPassword) { - if (IsComputerNameLocal(szComputer)) { + if (wxGetApp().GetNeedRunDaemon() && IsComputerNameLocal(szComputer)) { // Restart client if not already running m_pClientManager->AutoRestart(); }