From 6b565612efa925b2a14ff210cdf57bd1043d7c19 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sun, 15 Feb 2026 08:24:35 -0500 Subject: [PATCH] Do not attempt to create an existing directory. When copying settings from a previous version, the settings sub-directories may already exist. The settings initial save code would attempt to create the sub-directory without checking to see if it already existed which would trigger a wxWidgets directory already exists warning. --- common/settings/settings_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/settings/settings_manager.cpp b/common/settings/settings_manager.cpp index 71130f3e24..3ed4ab5863 100644 --- a/common/settings/settings_manager.cpp +++ b/common/settings/settings_manager.cpp @@ -587,7 +587,8 @@ public: path.Replace( m_src, m_dest, false ); dir.SetPath( path ); - wxMkdir( dir.GetFullPath() ); + if( !wxDirExists( dir.GetPath() ) ) + wxMkdir( dir.GetPath() ); return wxDIR_CONTINUE; }