diff options
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r-- | src/editorwindow.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc index bd00189..6757745 100644 --- a/src/editorwindow.cc +++ b/src/editorwindow.cc @@ -143,6 +143,14 @@ bool EditorWindow::loadFile(const QString &filename) entity->properties()->set_comment("label", ini.comment()); entity->properties()->set_label(str); + } else if (ini.got_key_string("template", str)) { + entity->properties()->set_comment("template", ini.comment()); + entity->properties()->set_template(0, str); + + } else if (ini.got_key_string("ship", str)) { + entity->properties()->set_comment("template", ini.comment()); + entity->properties()->set_template(1, str); + } else if (ini.got_key_string("name", str)) { entity->properties()->set_comment("name", ini.comment()); entity->properties()->set_name(str); |