From ba14d604adfee8b7596e0bfca81ad2720bbc0cf5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 21 Feb 2012 21:35:23 +0000 Subject: Show filename in the subwindow title. --- src/editorwindow.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/editorwindow.cc') 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; } -- cgit v1.2.3