External windows: Unregister window specific actions on destruction

Change-Id: Iba4f392366834093ecd51bcb607c71340bdb67ac
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2014-08-25 11:41:41 +02:00
parent a6bfb33e67
commit 5af67a9078

View File

@@ -75,6 +75,12 @@ WindowSupport::WindowSupport(QWidget *window, const Context &context)
WindowSupport::~WindowSupport()
{
if (UseMacShortcuts) {
ActionManager::unregisterAction(m_minimizeAction, Constants::MINIMIZE_WINDOW);
ActionManager::unregisterAction(m_zoomAction, Constants::ZOOM_WINDOW);
ActionManager::unregisterAction(m_closeAction, Constants::CLOSE_WINDOW);
}
ActionManager::unregisterAction(m_toggleFullScreenAction, Constants::TOGGLE_FULLSCREEN);
ICore::removeContextObject(m_contextObject);
}