From 169332e5691267fd69ac20ac2b1aa06441c588db Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sun, 3 May 2026 14:50:24 +0200 Subject: 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. --- src/views/viewproperties.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.3.1