Fix restoring of editor state when loading a file

With the recent restructering of editor manager, the editor state
was restored while the editor was hidden, causing the editor to
ensure the visibility of the cursor when it is shown.
This commit is contained in:
mae
2009-10-06 12:55:27 +02:00
parent 49fb887059
commit debe180872

View File

@@ -1146,10 +1146,12 @@ IEditor *EditorManager::openEditor(Core::Internal::EditorView *view, const QStri
return 0;
}
addEditor(editor);
restoreEditorState(editor);
QApplication::restoreOverrideCursor();
return activateEditor(view, editor, flags);
IEditor *result= activateEditor(view, editor, flags);
if (editor == result)
restoreEditorState(editor);
QApplication::restoreOverrideCursor();
return result;
}
bool EditorManager::openExternalEditor(const QString &fileName, const QString &editorKind)