From 21b89f1005fd188339add8004375ca57349b6a3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Aug 2014 18:33:35 +0000 Subject: fix for the case when the default sub is offline, and SRMM looks for the most online sub git-svn-id: http://svn.miranda-ng.org/main/trunk@10035 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/metacontacts/meta_services.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp index 1e83790031..bda82357de 100644 --- a/src/modules/metacontacts/meta_services.cpp +++ b/src/modules/metacontacts/meta_services.cpp @@ -544,6 +544,9 @@ static int Meta_MessageWindowEvent(WPARAM wParam, LPARAM lParam) p->m_hSub = db_mc_getMostOnline(cc->contactID); p->m_hWnd = mwed->hwndWindow; arMetaWindows.insert(p); + + if (p->m_hSub != db_mc_getDefault(cc->contactID)) + db_mc_setDefault(cc->contactID, p->m_hSub, false); } } } -- cgit v1.2.3