summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-02 18:33:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-02 18:33:35 +0000
commit21b89f1005fd188339add8004375ca57349b6a3a (patch)
treec372bf93e844c5b5ccb9e99689c07bc1a337b5f3
parentfd0668024e6fcadf68dd10bcb7a106502e84730d (diff)
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
-rw-r--r--src/modules/metacontacts/meta_services.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}
}
}