diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-21 21:35:23 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-21 21:35:23 +0000 |
commit | ba14d604adfee8b7596e0bfca81ad2720bbc0cf5 (patch) | |
tree | 39eef1b9ea80f73549b5c670bdca92a650bd9bf7 /src/editorwindow.cc | |
parent | 0a22de2cb23a1636f076d1dd8a05b7f873b9b653 (diff) |
Show filename in the subwindow title.
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r-- | src/editorwindow.cc | 8 |
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; } |