summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-13 21:38:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-13 21:38:53 +0000
commit78d2d1b9785d59fddf3e0f15225ac372954e1a2f (patch)
treeaf7bb2315eb46aecc36ae5c3775db1d05e41996f
parent9eec06e14d31a2c15d5822c535f60acdb0668e4f (diff)
convertor doesn't assign visibility flag correctly
git-svn-id: http://svn.miranda-ng.org/main/trunk@15855 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/mir_app/src/menu_utils.cpp5
1 files changed, 4 insertions, 1 deletions
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