From a05ba6fd1796c7c49349809934aae325bfd2e3a3 Mon Sep 17 00:00:00 2001 From: Robert Loehning <robert.loehning@nokia.com> Date: Fri, 5 Feb 2010 14:58:57 +0100 Subject: [PATCH] Fixed updating of actions when closing last editor. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Thorbjørn Lindeijer --- src/plugins/coreplugin/editormanager/editormanager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 9056f03519a..46fbed6dab2 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -460,11 +460,7 @@ void EditorManager::handleContextChange(Core::IContext *context) if (debugEditorManager) qDebug() << Q_FUNC_INFO; IEditor *editor = context ? qobject_cast<IEditor*>(context) : 0; - if (editor) { - setCurrentEditor(editor); - } else { - updateActions(); - } + setCurrentEditor(editor); } void EditorManager::setCurrentEditor(IEditor *editor, bool ignoreNavigationHistory) -- GitLab