Commit 5af67a90 authored by Eike Ziller's avatar Eike Ziller
Browse files

External windows: Unregister window specific actions on destruction



Change-Id: Iba4f392366834093ecd51bcb607c71340bdb67ac
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent a6bfb33e
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment