ui/winui/commandbar.cpp

branch
newapi
changeset 208
f632bc0589ab
parent 207
93b9f502cb88
child 213
7e39db525fd9
--- a/ui/winui/commandbar.cpp	Wed Oct 11 19:11:38 2023 +0200
+++ b/ui/winui/commandbar.cpp	Wed Oct 11 22:59:42 2023 +0200
@@ -98,7 +98,7 @@
 	for (UiMenuItemI* mi = i->menu.items_begin; mi; mi = mi->next) {
 		// convert UiMenuItemI to UiToolbarItemI
 		switch (mi->type) {
-			case UI_MENU_SUBMENU: {
+			case UI_MENU: {
 				UiMenu* mitem = (UiMenu*)mi;
 				UiToolbarMenuItem tbitem;
 				memset(&tbitem, 0, sizeof(UiToolbarMenuItem));

mercurial