diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-20 18:07:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-20 18:07:44 +0000 |
commit | bb6aa9cc3c864059ac20849cdac413c827fbd5a0 (patch) | |
tree | b8cced832f7c611deddbd38da48b1e64eeb9fa4b | |
parent | 5289388e941bbdeca3d380c2f1044228e3397bc0 (diff) |
fix for toggling MCs on/off
git-svn-id: http://svn.miranda-ng.org/main/trunk@8667 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/modules/metacontacts/meta_menu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/metacontacts/meta_menu.cpp b/src/modules/metacontacts/meta_menu.cpp index 0717647f88..fdc05fe142 100644 --- a/src/modules/metacontacts/meta_menu.cpp +++ b/src/modules/metacontacts/meta_menu.cpp @@ -364,17 +364,17 @@ INT_PTR Meta_OnOff(WPARAM wParam, LPARAM lParam) bool bToggled = !db_mc_isEnabled();
db_set_b(0, META_PROTO, "Enabled", bToggled);
if (bToggled) {
- mi.icolibItem = GetIconHandle(I_MENU);
- mi.pszName = LPGEN("Toggle MetaContacts On");
- }
- else {
mi.icolibItem = GetIconHandle(I_MENUOFF);
mi.pszName = LPGEN("Toggle MetaContacts Off");
}
+ else {
+ mi.icolibItem = GetIconHandle(I_MENU);
+ mi.pszName = LPGEN("Toggle MetaContacts On");
+ }
Menu_ModifyItem(hMenuOnOff, &mi);
db_mc_enable(bToggled);
- Meta_HideMetaContacts(bToggled);
+ Meta_HideMetaContacts(!bToggled);
return 0;
}
|