diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 635c18a6ac..07da5e6ff2 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -372,7 +372,16 @@ void wxFileConfig::Init() } else { - wxLogWarning(_("can't open user configuration file '%s'."), m_fnLocalFile.GetFullPath().c_str() ); + const wxString path = m_fnLocalFile.GetFullPath(); + wxLogWarning(_("can't open user configuration file '%s'."), + path.c_str()); + + if ( m_fnLocalFile.FileExists() ) + { + wxLogWarning(_("Changes won't be saved to avoid overwriting the existing file \"%s\""), + path.c_str()); + m_fnLocalFile.Clear(); + } } }