git-svn-id: svn://db.shs.com.ru/libs@76 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user