]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
don't assume there's always an active wxEventLoop instance
[wxWidgets.git] / src / common / fileconf.cpp
index b47cb982a52b283a6f2b2b3bba7c7ecb6a4d4026..06c4a1e2d0877edd82d69074e5e0cc3f62d5ec7c 100644 (file)
@@ -435,7 +435,13 @@ wxFileConfig::wxFileConfig(const wxString& appName, const wxString& vendorName,
 {
     // Make up names for files if empty
     if ( m_strLocalFile.empty() && (style & wxCONFIG_USE_LOCAL_FILE) )
+    {
         m_strLocalFile = GetLocalFileName(GetAppName());
+#if defined(__UNIX__) && !defined(__VMS)
+        if ( style & wxCONFIG_USE_SUBDIR )
+            m_strLocalFile << wxFILE_SEP_PATH << GetAppName() << _T(".conf");
+#endif
+    }
 
     if ( m_strGlobalFile.empty() && (style & wxCONFIG_USE_GLOBAL_FILE) )
         m_strGlobalFile = GetGlobalFileName(GetAppName());