forked from qt-creator/qt-creator
External windows: Unregister window specific actions on destruction
Change-Id: Iba4f392366834093ecd51bcb607c71340bdb67ac Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user