classic menu fix

This commit is contained in:
Jindra Petřík
2015-05-24 17:37:47 +02:00
parent 52a0d1cd44
commit 3c834fe696

View File

@@ -206,6 +206,9 @@ public class MainFrameClassicMenu extends MainFrameMenu {
@Override
public void setMenuEnabled(String path, boolean enabled) {
path = mapping(path);
if (path.equals("_") || path.startsWith("_/")) {
return;
}
MenuElement menu = menuElements.get(path);
if (menu == null) {
throw new IllegalArgumentException("Menu " + path + " does not exist");