From bdad617254c066569de2f64e072615fe8d2c94ef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Oct 2017 20:28:53 +0300 Subject: KeepStatus: fix for initial status assignment --- plugins/StatusManager/src/KeepStatus/keepstatus.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp index 148f62a9ff..7f12d2dfeb 100644 --- a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp +++ b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp @@ -93,9 +93,7 @@ TKSSettings::TKSSettings(PROTOACCOUNT *pa) m_szName = pa->szModuleName; m_tszAccName = pa->tszAccountName; m_szMsg = nullptr; - - int iStatus = CallProtoService(pa->szModuleName, PS_GETSTATUS, 0, 0); - AssignStatus(iStatus, iStatus, nullptr); + m_status = m_lastStatus = CallProtoService(pa->szModuleName, PS_GETSTATUS, 0, 0); } TKSSettings::~TKSSettings() -- cgit v1.2.3