From 78d2d1b9785d59fddf3e0f15225ac372954e1a2f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 13 Dec 2015 21:38:53 +0000 Subject: convertor doesn't assign visibility flag correctly git-svn-id: http://svn.miranda-ng.org/main/trunk@15855 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/menu_utils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mir_app/src/menu_utils.cpp b/src/mir_app/src/menu_utils.cpp index 075cd9ec76..17fdcaea62 100644 --- a/src/mir_app/src/menu_utils.cpp +++ b/src/mir_app/src/menu_utils.cpp @@ -867,7 +867,10 @@ static int sttReadOldItem(TMO_IntMenuItem *pmi, void *szModule) // check if it visible mir_snprintf(szSetting, "%s_visible", menuItemName); - if (!db_get_b(NULL, (char*)szModule, szSetting, 1)) + pmi->customVisible = db_get_b(NULL, (char*)szModule, szSetting, 1) != 0; + if (pmi->customVisible) + pmi->mi.flags &= ~CMIF_HIDDEN; + else pmi->mi.flags |= CMIF_HIDDEN; // mi.name.t -- cgit v1.2.3