summaryrefslogtreecommitdiff
path: root/src/modules/metacontacts/meta_menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/metacontacts/meta_menu.cpp')
-rw-r--r--src/modules/metacontacts/meta_menu.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/metacontacts/meta_menu.cpp b/src/modules/metacontacts/meta_menu.cpp
index cd71119ba5..8524c1cdf0 100644
--- a/src/modules/metacontacts/meta_menu.cpp
+++ b/src/modules/metacontacts/meta_menu.cpp
@@ -218,13 +218,13 @@ INT_PTR Meta_Delete(WPARAM hContact, LPARAM bSkipQuestion)
(This means the function has been called via the contact menu).
*/
-INT_PTR Meta_Default(WPARAM hMeta, LPARAM wParam)
+INT_PTR Meta_Default(WPARAM hSub, LPARAM wParam)
{
- DBCachedContact *cc = CheckMeta(hMeta);
- if (cc) {
- cc->nDefault = Meta_GetContactNumber(cc, wParam);
+ DBCachedContact *cc = currDb->m_cache->GetCachedContact(db_mc_getMeta(hSub));
+ if (cc && cc->IsMeta()) {
+ cc->nDefault = Meta_GetContactNumber(cc, hSub);
currDb->MetaSetDefault(cc);
- NotifyEventHooks(hEventDefaultChanged, hMeta, wParam);
+ NotifyEventHooks(hEventDefaultChanged, cc->contactID, hSub);
}
return 0;
}