summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-06-14 15:41:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-06-14 15:41:30 +0000
commitb900c042c4f3fa37c384b80db883cab919f2d752 (patch)
treeb54af1aa2c0ca1536129bd9b9efec338f3b6b4dd
parentae502af2aca3fa3409f0b9833bbfc1719a296e04 (diff)
fix for MirVer in metas
git-svn-id: http://svn.miranda-ng.org/main/trunk@9469 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/FingerprintNG/src/fingerprint.cpp2
-rw-r--r--src/modules/metacontacts/meta_services.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FingerprintNG/src/fingerprint.cpp b/plugins/FingerprintNG/src/fingerprint.cpp
index 30ce9b8cf3..ef464d93e8 100644
--- a/plugins/FingerprintNG/src/fingerprint.cpp
+++ b/plugins/FingerprintNG/src/fingerprint.cpp
@@ -171,7 +171,7 @@ int __fastcall ApplyFingerprintImage(MCONTACT hContact, LPTSTR szMirVer)
SetSrmmIcon(hContact, szMirVer);
MCONTACT hMeta = db_mc_getMeta(hContact);
- if (hMeta && db_mc_getDefault(hMeta) == hContact)
+ if (hMeta && db_mc_getMostOnline(hMeta) == hContact)
db_set_ts(hMeta, META_PROTO, "MirVer", szMirVer);
return 0;
diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp
index 1fed53f721..7852c2c92d 100644
--- a/src/modules/metacontacts/meta_services.cpp
+++ b/src/modules/metacontacts/meta_services.cpp
@@ -416,7 +416,7 @@ int Meta_SettingChanged(WPARAM hContact, LPARAM lParam)
// set status to that of most online contact
MCONTACT hMostOnline = Meta_GetMostOnline(ccMeta);
if (hMostOnline != db_mc_getDefault(ccMeta->contactID))
- db_mc_setDefault(ccMeta->contactID, hMostOnline, false);
+ db_mc_notifyDefChange(ccMeta->contactID, hMostOnline);
Meta_CopyContactNick(ccMeta, hMostOnline);
Meta_FixStatus(ccMeta);