Commit 2b128ac6 authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann
Browse files

QmlDesigner: Update actions for design mode switch



Change-Id: If5ad9d7da6e6c16653153fa78bc37e948e86b0fc
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent aafbf2ea
......@@ -201,6 +201,7 @@ void QmlDesignerPlugin::showDesigner()
if (m_documentManager.hasCurrentDesignDocument()) {
activateAutoSynchronization();
m_shortCutManager.updateActions(currentDesignDocument()->textEditor());
m_viewManager.pushFileOnCrambleBar(m_documentManager.currentDesignDocument()->fileName());
}
......
......@@ -172,9 +172,8 @@ void ShortCutManager::registerActions(const Core::Context &qmlDesignerMainContex
}
}
void ShortCutManager::updateActions(Core::IEditor* editor)
void ShortCutManager::updateActions(Core::IEditor* currentEditor)
{
Core::IEditor *currentEditor = editor;
int openedCount = Core::ICore::editorManager()->openedEditors().count()
+ Core::ICore::editorManager()->openedEditorsModel()->restoredEditors().count();
......
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