Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1414,9 +1414,8 @@ void Menu::removeMenu(const QString& menuName) { · 1413 unmodified lines | ||
| 1414 | 1414 | if (action) { |
| 1415 | 1415 | QString finalMenuPart; |
| 1416 | 1416 | QMenu* parent = getMenuParent(menuName, finalMenuPart); |
| 1417 | − | |
| 1418 | 1417 | if (parent) { |
| 1419 | − removeAction(parent, finalMenuPart); | |
| 1418 | + parent->removeAction(action); | |
| 1420 | 1419 | } else { |
| 1421 | 1420 | QMenuBar::removeAction(action); |
| 1422 | 1421 | } |