forked from qt-creator/qt-creator
QmlDesigner: Update actions for design mode switch
Change-Id: If5ad9d7da6e6c16653153fa78bc37e948e86b0fc Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
aafbf2eaf0
commit
2b128ac692
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user