]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
Patch to use high printer resolution instead of Cairo's 72dpi
[wxWidgets.git] / src / common / fileconf.cpp
index 635c18a6ac516a417561b8fca372ebe23e780744..07da5e6ff2874f585bee22af703840078c4ff936 100644 (file)
@@ -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();
+            }
         }
     }