summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/ftpfile.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-27 19:28:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-27 19:28:09 +0000
commit03df9032e2b6248fed2bcf1e6d40fbfba4581779 (patch)
tree29275137a963939beed2b788ade711ef131f4a3c /plugins/FTPFileYM/src/ftpfile.cpp
parent68677c938c33f5d60ad800e0872d824918d56243 (diff)
minor menu related fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src/ftpfile.cpp')
-rw-r--r--plugins/FTPFileYM/src/ftpfile.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp
index ed5185dd71..90029b8159 100644
--- a/plugins/FTPFileYM/src/ftpfile.cpp
+++ b/plugins/FTPFileYM/src/ftpfile.cpp
@@ -114,9 +114,7 @@ void InitMenuItems()
mir_sntprintf(stzName, _countof(stzName), TranslateT("FTP Server %d"), i + 1);
mi.flags = CMIF_TCHAR;
- mi.hParentMenu = 0;
- if (opt.bUseSubmenu)
- mi.hParentMenu = hMenu;
+ mi.hParentMenu = (opt.bUseSubmenu) ? hMenu : 0;
mi.icolibItem = iconList[i].hIcolib;
hSubMenu[i] = Menu_AddContactMenuItem(&mi);