diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-21 22:30:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-21 22:30:21 +0000 |
commit | 0392694560d530c14aced7ac21f85b18b676a685 (patch) | |
tree | 2410f58516767913b6fdd5f2efcdca9fb1155fc2 /src/properties.cc | |
parent | ba14d604adfee8b7596e0bfca81ad2720bbc0cf5 (diff) |
Initial support to preserve ini file comments
Diffstat (limited to 'src/properties.cc')
-rw-r--r-- | src/properties.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/properties.cc b/src/properties.cc index f5e2159..87633f7 100644 --- a/src/properties.cc +++ b/src/properties.cc @@ -18,8 +18,11 @@ Properties::~Properties() { } -void Properties::add_value(const QString &key, const QString &value) +void Properties::add_value(const QString &key, const QString &value, const QString &comment) { + if (comment.size()) + properties_values += comment; + properties_values += key; properties_values += '='; properties_values += value; |