aboutsummaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 4dd72a4f4..66c17e12d 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -249,6 +249,9 @@ bool Settings::updateConfigObject(std::istream &is, std::ostream &os,
} else if (it == m_settings.end()) {
// Remove by skipping
was_modified = true;
+ Settings removed_group; // Move 'is' to group end
+ std::stringstream ss;
+ removed_group.updateConfigObject(is, ss, "}", tab_depth + 1);
break;
} else {
printEntry(os, name, it->second, tab_depth);