┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2026-05-03 14:50:24 +0200
committerMéven Car <[email protected]>2026-06-13 12:03:44 +0200
commit169332e5691267fd69ac20ac2b1aa06441c588db (patch)
tree006d1b2bec9bc5907bcdeec4ea5df41f57f681ae
parent2710edf62c77b92fbbe02972fb89e7a9e9059a4f (diff)
viewproperties: ensure not to remove defaults view properties
As the global file defines the defaults, it will always match the isDefault filter. In this case prevent the filter to remove its settings.
-rw-r--r--src/views/viewproperties.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp
index f392f45c5..484047651 100644
--- a/src/views/viewproperties.cpp
+++ b/src/views/viewproperties.cpp
@@ -589,8 +589,9 @@ void ViewProperties::save()
return;
}
const auto items = m_node->items();
+ // default settings must not be cleared
+ bool allDefault = ViewProperties::destinationDir(QStringLiteral("global")) != m_filePath;
const auto defaultConfig = defaultProperties();
- bool allDefault = true;
for (const auto item : items) {
if (item->name() == "Timestamp") {
continue;