summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/mirotrmenu.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-07-25 14:54:09 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-07-25 14:54:09 +0000
commit075c7777370258c5e1ccff1dc22f31b416e1e761 (patch)
tree72ad321b228f71eec6c577e256347f2ee0d631bf /plugins/MirOTR/src/mirotrmenu.cpp
parent2a81bd5a12324512985116f17674c65a5906ed1d (diff)
MirOTR:
- Fixed small memory leak git-svn-id: http://svn.miranda-ng.org/main/trunk@14690 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src/mirotrmenu.cpp')
-rw-r--r--plugins/MirOTR/src/mirotrmenu.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/MirOTR/src/mirotrmenu.cpp b/plugins/MirOTR/src/mirotrmenu.cpp
index 60c8747b35..93ea2f2696 100644
--- a/plugins/MirOTR/src/mirotrmenu.cpp
+++ b/plugins/MirOTR/src/mirotrmenu.cpp
@@ -85,10 +85,8 @@ INT_PTR MirOTRMenuCheckService(WPARAM wParam, LPARAM)
Menu_ModifyItem(hStatusInfoItem, TranslateT(LANG_STATUS_DISABLED), IcoLib_GetIconHandle(ICON_NOT_PRIVATE));
}
}
- else if (pcpp->MenuItemHandle == hHTMLConvMenuItem) {
- int flags = db_get_b(hContact, MODULENAME, "HTMLConv", 0) ? CMIF_CHECKED : 0;
- Menu_ModifyItem(hHTMLConvMenuItem, NULL, INVALID_HANDLE_VALUE, flags);
- }
+ else if (pcpp->MenuItemHandle == hHTMLConvMenuItem)
+ Menu_SetChecked(hHTMLConvMenuItem, db_get_b(hContact, MODULENAME, "HTMLConv", 0) != 0);
}
return TRUE;
}
@@ -201,6 +199,7 @@ void InitMirOTRMenu(void)
mi.flags = CMIF_TCHAR | CMIF_CHECKED;
mi.name.t = LANG_MENU_TOGGLEHTML;
mi.position = 300001;
+ mi.hIcolibItem = 0;
hHTMLConvMenuItem = AddMirOTRMenuItem(&mi, MS_OTR_MENUTOGGLEHTML);
}