Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r--src/editorwindow.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc
index 208c309..446f6d7 100644
--- a/src/editorwindow.cc
+++ b/src/editorwindow.cc
@@ -85,7 +85,7 @@ bool EditorWindow::loadFile(const QString &filename)
} else if (ini.got_section("jumpgate")) {
in_entity = true;
- } else if (ini.got_section("jumpoint")) {
+ } else if (ini.got_section("jumppoint")) {
in_entity = true;
} else if (ini.got_section("navpoint")) {
@@ -118,7 +118,7 @@ bool EditorWindow::loadFile(const QString &filename)
entity->properties()->set_type(ini.section());
}
if (entity && in_subsection) {
- entity->properties()->add_subsection(ini.section());
+ entity->properties()->add_subsection_header(ini.section());
}
} else if(ini.got_key()) {
@@ -167,9 +167,7 @@ bool EditorWindow::loadFile(const QString &filename)
}
QApplication::restoreOverrideCursor();
-
- //setCurrentFile(fileName);
- //connect(document(), SIGNAL(contentsChanged()),this, SLOT(documentWasModified()));
+ editorwindow_filename = QFileInfo(filename).canonicalFilePath();
return true;
}