diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-22 21:36:54 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-22 21:36:54 +0000 |
commit | e6347f3747a746151f1f67c7a508c5e2fc9091a8 (patch) | |
tree | 21b078c9e1f04c02b9049611ded14ee1f064b43c /src/properties.cc | |
parent | 0392694560d530c14aced7ac21f85b18b676a685 (diff) |
Preserve ini file comments. preserve racetrack and checkpoint entities.
Diffstat (limited to 'src/properties.cc')
-rw-r--r-- | src/properties.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/properties.cc b/src/properties.cc index 87633f7..c9263cb 100644 --- a/src/properties.cc +++ b/src/properties.cc @@ -35,4 +35,12 @@ void Properties::add_info(const QString &text) properties_info += '\n'; } +void Properties::save_comment(QTextStream &textstream, const QString &attribute) +{ + QString text = comment(attribute); + if (text.size()) { + textstream << text; + } +} + } // namespace editor |