Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-22 21:36:54 +0000
committerStijn Buys <ingar@osirion.org>2012-02-22 21:36:54 +0000
commite6347f3747a746151f1f67c7a508c5e2fc9091a8 (patch)
tree21b078c9e1f04c02b9049611ded14ee1f064b43c /src/zoneproperties.cc
parent0392694560d530c14aced7ac21f85b18b676a685 (diff)
Preserve ini file comments. preserve racetrack and checkpoint entities.
Diffstat (limited to 'src/zoneproperties.cc')
-rw-r--r--src/zoneproperties.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zoneproperties.cc b/src/zoneproperties.cc
index 43e4804..4e5736b 100644
--- a/src/zoneproperties.cc
+++ b/src/zoneproperties.cc
@@ -34,7 +34,8 @@ void ZoneProperties::save(QTextStream & textstream)
}
textstream << "[zone]" << '\n';
-
+
+ save_comment(textstream, "name");
if (name().size())
textstream << "name=" << name() << '\n';
@@ -46,6 +47,7 @@ void ZoneProperties::save(QTextStream & textstream)
// info string
if (info().size()) {
textstream << '\n';
+ save_comment(textstream, "info");
// QTextStream operates on QString, not on QString const
QString infobuffer = info();