From 03df9032e2b6248fed2bcf1e6d40fbfba4581779 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 27 Jun 2015 19:28:09 +0000 Subject: minor menu related fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FTPFileYM/src/ftpfile.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/FTPFileYM/src/ftpfile.cpp') 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); -- cgit v1.2.3