mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
fix bug in Menu::removeAction() where we weren't removing the action key from the hash, memory leak, and other problems
This commit is contained in:
parent
f92facea76
commit
8b51cd0d8a
1 changed files with 1 additions and 0 deletions
|
@ -858,6 +858,7 @@ QAction* Menu::addCheckableActionToQMenuAndActionHash(QMenu* destinationMenu,
|
|||
|
||||
void Menu::removeAction(QMenu* menu, const QString& actionName) {
|
||||
menu->removeAction(_actionHash.value(actionName));
|
||||
_actionHash.remove(actionName);
|
||||
}
|
||||
|
||||
void Menu::setIsOptionChecked(const QString& menuOption, bool isChecked) {
|
||||
|
|
Loading…
Reference in a new issue