QmlDesigner: Update actions for design mode switch

Change-Id: If5ad9d7da6e6c16653153fa78bc37e948e86b0fc
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-02-04 18:49:56 +01:00
committed by Thomas Hartmann
parent aafbf2eaf0
commit 2b128ac692
2 changed files with 2 additions and 2 deletions

View File

@@ -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();