git-svn-id: svn://db.shs.com.ru/libs@76 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2016-01-20 08:41:52 +00:00
parent d88b341070
commit a574473f14
3 changed files with 39 additions and 19 deletions

View File

@@ -565,6 +565,8 @@ void QPIConfig::writeAll() {
//writeEntry(&root);
buildFullNames(&root);
Branch b = allLeaves();
QString prefix, tprefix;
bool isPrefix;
int j = 0;
for (int i = 0; i < other.size(); ++i) {
//cout << j << endl;
@@ -575,10 +577,22 @@ void QPIConfig::writeAll() {
++j;
} else {
stream << other[i];
tprefix = getPrefixFromLine(other[i], &isPrefix);
if (isPrefix) {
prefix = tprefix;
if (!prefix.isEmpty())
prefix += delim;
}
if (i < other.size() - 1) stream << '\n';
}
} else {
stream << other[i];
tprefix = getPrefixFromLine(other[i], &isPrefix);
if (isPrefix) {
prefix = tprefix;
if (!prefix.isEmpty())
prefix += delim;
}
if (i < other.size() - 1) stream << '\n';
}
}