From e6347f3747a746151f1f67c7a508c5e2fc9091a8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 22 Feb 2012 21:36:54 +0000 Subject: Preserve ini file comments. preserve racetrack and checkpoint entities. --- src/zoneproperties.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/zoneproperties.cc') 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(); -- cgit v1.2.3