summaryrefslogtreecommitdiffstats
path: root/objects/editors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'objects/editors.cpp')
-rw-r--r--objects/editors.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/objects/editors.cpp b/objects/editors.cpp
index 85e73c3..17fad9f 100644
--- a/objects/editors.cpp
+++ b/objects/editors.cpp
@@ -40,6 +40,7 @@
#include <coreplugin/idocument.h>
#include <coreplugin/editormanager/ieditor.h>
#include <cpptools/cppmodelmanagerinterface.h>
+#include "scriptrunner.h"
using namespace Scripting;
using namespace Scripting::Internal;
@@ -84,7 +85,7 @@ QStringList Editors::existingEditors()
Editor *Editors::openFile(const QString &fileName)
{
- Core::IEditor* editor = Core::EditorManager::instance()->openEditor(fileName);
+ Core::IEditor* editor = Core::EditorManager::instance()->openEditor(ScriptRunner::absolutePath(fileName));
if (editor) {
Editor* wrapper = wrapEditor(editor);
wrapper->waitForInitialized();