From 8cf9463b8e4965927593eab08297f66ebf752264 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 14 Jul 2018 14:18:00 +0300 Subject: fix for resetting menu in Clist_Modern --- src/mir_app/src/clui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mir_app/src/clui.cpp b/src/mir_app/src/clui.cpp index 0805220825..22801c16e4 100644 --- a/src/mir_app/src/clui.cpp +++ b/src/mir_app/src/clui.cpp @@ -97,7 +97,8 @@ static int CluiLangpackChanged(WPARAM, LPARAM) g_clistApi.hMenuMain = LoadMenuA(g_plugin.getInst(), MAKEINTRESOURCEA(IDR_CLISTMENU)); TranslateMenu(g_clistApi.hMenuMain); - SetMenu(g_clistApi.hwndContactList, g_clistApi.hMenuMain); + if (GetMenu(g_clistApi.hwndContactList)) + SetMenu(g_clistApi.hwndContactList, g_clistApi.hMenuMain); return 0; } -- cgit v1.2.3