Fix 'Run client' feature for local connection

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2018-10-24 01:39:52 +03:00
parent ebca06234a
commit 0419cc929c
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}