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
10461046
10471047 void MenuWrapper::removeAction(QAction* action) {
10481048 _realMenu->removeAction(action);
1049+ VrMenu::executeOrQueue([=](VrMenu* vrMenu) {
1050+ vrMenu->removeAction(action);
1051+ });
10491052 }
10501053
10511054 void MenuWrapper::insertAction(QAction* before, QAction* action) {