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.
This commit is contained in:
Wayne Stambaugh
2026-02-15 08:24:35 -05:00
parent fd160e7dd7
commit 6b565612ef
+2 -1
View File
@@ -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;
}