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:
ZappoMan 2014-05-31 14:04:33 -07:00
parent f92facea76
commit 8b51cd0d8a

View file

@ -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) {