Showing the changes to interface/src/Menu.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1046,6 +1046,9 @@ QAction* MenuWrapper::addAction(const QString& menuName, const QObject* receiver · 1045 unmodified lines | ||
| 1046 | 1046 | |
| 1047 | 1047 | void MenuWrapper::removeAction(QAction* action) { |
| 1048 | 1048 | _realMenu->removeAction(action); |
| 1049 | + VrMenu::executeOrQueue([=](VrMenu* vrMenu) { | |
| 1050 | + vrMenu->removeAction(action); | |
| 1051 | + }); | |
| 1049 | 1052 | } |
| 1050 | 1053 | |
| 1051 | 1054 | void MenuWrapper::insertAction(QAction* before, QAction* action) { |