diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-14 14:18:00 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-14 14:18:00 +0300 |
commit | 8cf9463b8e4965927593eab08297f66ebf752264 (patch) | |
tree | b5d1174b0d4c35e1941e7e541613a633166c5391 | |
parent | 0fca8ceb4d37fbb3e82b8d39934b682a5370d0a0 (diff) |
fix for resetting menu in Clist_Modern
-rw-r--r-- | src/mir_app/src/clui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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;
}
|