diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-04 17:15:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-04 17:15:25 +0300 |
commit | 9c2c00bce7efe0a0e9704336d88c04fbd9705c72 (patch) | |
tree | a0b448ebe981a6ede914d0d6caa6a451fde7fd60 | |
parent | 799494c0ea05d35208e50b0a760d8da7124b4054 (diff) |
final fix for #1139 (KeepStatus: option "Reconnect on APM resume" don't work)
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/keepstatus.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp index 0fe84b286c..0d70c4d010 100644 --- a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp +++ b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp @@ -1021,8 +1021,11 @@ static DWORD CALLBACK MessageWndProc(HWND, UINT msg, WPARAM wParam, LPARAM lPara // case PBT_APMRESUMEAUTOMATIC: ? log_infoA("KeepStatus: resume from suspend state"); if (ps != nullptr) { - for (auto &it : *ps) - it->AssignStatus(it->m_status, it->m_lastStatus, it->m_szMsg); + for (auto &it : *ps) { + SMProto *p = protoList.find(it); + if (p) + p->AssignStatus(it->m_status, it->m_lastStatus, it->m_szMsg); + } delete ps; ps = nullptr; } |