summaryrefslogtreecommitdiff
path: root/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/genericprojectmanager/genericprojectfileseditor.cpp')
-rw-r--r--src/plugins/genericprojectmanager/genericprojectfileseditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp b/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp
index 6337bec460..6869454520 100644
--- a/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp
+++ b/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp
@@ -79,12 +79,12 @@ QString ProjectFilesFactory::displayName() const
return tr(Constants::FILES_EDITOR_DISPLAY_NAME);
}
-Core::IFile *ProjectFilesFactory::open(const QString &fileName)
+Core::IDocument *ProjectFilesFactory::open(const QString &fileName)
{
Core::EditorManager *editorManager = Core::EditorManager::instance();
if (Core::IEditor *editor = editorManager->openEditor(fileName, id()))
- return editor->file();
+ return editor->document();
return 0;
}