提交 0b9ef5a4 编写于 作者: M mcherkas

8130769: The new menu can't be shown on the menubar after clicking the "Add" button.

Reviewed-by: serb
上级 c46ecfe4
...@@ -229,9 +229,11 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible ...@@ -229,9 +229,11 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible
if (m.peer == null) { if (m.peer == null) {
m.addNotify(); m.addNotify();
} }
menus.addElement(m);
peer.addMenu(m); peer.addMenu(m);
} else {
menus.addElement(m);
} }
menus.addElement(m);
return m; return m;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册