From 5ee7ae4a4579dee69bfe3bbf3754c6d67cd61794 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 31 Oct 2024 13:55:41 -0400 Subject: [PATCH] Make sure to set modified bit when releasing nested settings (cherry picked from commit 826794469df68aa10a52fbceb24aebea7f9fef5f) --- common/settings/json_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/settings/json_settings.cpp b/common/settings/json_settings.cpp index 6f9f8ccd8a..2b2066c257 100644 --- a/common/settings/json_settings.cpp +++ b/common/settings/json_settings.cpp @@ -862,7 +862,7 @@ void JSON_SETTINGS::ReleaseNestedSettings( NESTED_SETTINGS* aSettings ) if( it != m_nested_settings.end() ) { wxLogTrace( traceSettings, wxT( "Flush and release %s" ), ( *it )->GetFilename() ); - ( *it )->SaveToFile(); + m_modified |= ( *it )->SaveToFile(); m_nested_settings.erase( it ); }