Fixed bug with dash character in menu item

Fixed a bug where if the text for a menu item started with - then it
would auto be disabled.
This commit is contained in:
Nathan Bowhay 2015-02-02 15:46:26 -08:00
parent ae706b2407
commit f039c98f08

View file

@ -1018,7 +1018,7 @@ void GuiMenuBar::addSubmenuItem(Menu *menu, MenuItem *submenu, const char *text,
newMenuItem->checkGroup = checkGroup;
newMenuItem->nextMenuItem = NULL;
newMenuItem->acceleratorIndex = 0;
newMenuItem->enabled = text[0] != '-';
newMenuItem->enabled = (dStrlen(text) > 1 || text[0] != '-');
newMenuItem->visible = true;
newMenuItem->bitmapIndex = -1;