History

Remove items from the QML version of the menu when they are removed from the main menu

Brad Davis committed 11 years ago

Commit 0aaa07a1 parent 08ee5cb4 files · +68 −74Browse files

Showing the changes to interface/src/Menu.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Menu.cpp+3−0
@@ -1046,6 +1046,9 @@ QAction* MenuWrapper::addAction(const QString& menuName, const QObject* receiver · 1045 unmodified lines
1046 1046
1047void MenuWrapper::removeAction(QAction* action) {1047void MenuWrapper::removeAction(QAction* action) {
1048 _realMenu->removeAction(action);1048 _realMenu->removeAction(action);
1049 VrMenu::executeOrQueue([=](VrMenu* vrMenu) {
1050 vrMenu->removeAction(action);
1051 });
1049}1052}
1050 1053
1051void MenuWrapper::insertAction(QAction* before, QAction* action) {1054void MenuWrapper::insertAction(QAction* before, QAction* action) {