# HG changeset patch
# User Giampaolo Fadel <gp.fa...@gmail.com>
# Date 1244797607 -7200
# Node ID 21208118da2b04bf4c2dc615bca07c74d4e67601
# Parent  a0b019be6a748d548ac7501156744f833ab23d4b
cmenu: remove the last separator if the submenu ends with a separator

diff --git a/win32/shellext/ContextMenu.cpp b/win32/shellext/ContextMenu.cpp
--- a/win32/shellext/ContextMenu.cpp
+++ b/win32/shellext/ContextMenu.cpp
@@ -363,6 +363,8 @@
                 }
             }
         }
+        if (isSeparator && indexSubMenu>0)
+            RemoveMenu(hSubMenu, indexSubMenu-1, MF_BYPOSITION) ;
     }
 
     TDEBUG_TRACE("  CShellExt::QueryContextMenu: adding main THG menu");

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to