Commit a05ba6fd authored by Robert Loehning's avatar Robert Loehning
Browse files

Fixed updating of actions when closing last editor.

Reviewed-by: Thorbjørn Lindeijer
parent acda1c57
...@@ -460,11 +460,7 @@ void EditorManager::handleContextChange(Core::IContext *context) ...@@ -460,11 +460,7 @@ void EditorManager::handleContextChange(Core::IContext *context)
if (debugEditorManager) if (debugEditorManager)
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
IEditor *editor = context ? qobject_cast<IEditor*>(context) : 0; IEditor *editor = context ? qobject_cast<IEditor*>(context) : 0;
if (editor) { setCurrentEditor(editor);
setCurrentEditor(editor);
} else {
updateActions();
}
} }
void EditorManager::setCurrentEditor(IEditor *editor, bool ignoreNavigationHistory) void EditorManager::setCurrentEditor(IEditor *editor, bool ignoreNavigationHistory)
......
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