[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 1104
Date       : Wed May 17 13:50:47 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/oilmenus.cpp

Remove unimplemented menuitems (this leaves all separaters, which isn't ideal


Diff:
Index: Trunk/XaraLX/wxOil/oilmenus.cpp
===================================================================
--- Trunk/XaraLX/wxOil/oilmenus.cpp	(revision 1103)
+++ Trunk/XaraLX/wxOil/oilmenus.cpp	(revision 1104)
@@ -1095,7 +1095,13 @@
 					pMenu->Append( subMenu->GetMenuId(), subMenu->GetMenuText(), _T(""),
 						ItemKind );
 			}
-			
+
+PORTNOTE( "menu", "Remove Unimplemented menuitems from menu, under Release" )
+#if !defined(_DEBUG)
+			if( subMenu->Description == _T("Unimplemented") )
+				subMenu->ControlState.RemoveFromMenu = true;
+#endif
+
 			if( !subMenu->ControlState.RemoveFromMenu )
 			{
 				//Update the Menu Text


Xara