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

Revert "Fixed updating of actions when closing last editor."

This reverts commit a05ba6fd.

Fixed the actions but broke handling of Esc-key and navigating to line numbers in locator bar.
parent 158fe472
......@@ -460,7 +460,11 @@ void EditorManager::handleContextChange(Core::IContext *context)
if (debugEditorManager)
qDebug() << Q_FUNC_INFO;
IEditor *editor = context ? qobject_cast<IEditor*>(context) : 0;
setCurrentEditor(editor);
if (editor) {
setCurrentEditor(editor);
} else {
updateActions();
}
}
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