From 7393b46ab89c5bb894c67f69a5393aa634a06390 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 17 Mar 2012 02:41:42 +0800 Subject: [PATCH] Changed configuration file as its location changed in latest wxWidgets anyway --- src/xmlcopyeditor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index ae0bed7..32b91dd 100755 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -186,8 +186,8 @@ END_EVENT_TABLE() IMPLEMENT_APP ( MyApp) MyApp::MyApp() : checker ( NULL ), server ( NULL ), connection ( NULL ), -#ifdef __WXMSW__ - config ( new wxFileConfig ( _T ( ".xmlcopyeditor" ) ) )//( _T ( "SourceForge Project\\XML Copy Editor" ) ) ) +#if defined(__WXMSW__) && !wxCHECK_VERSION(2,9,2) + config ( new wxFileConfig ( _T ( ".xmlcopyeditor" ) ) )//( _T ( "SourceForge Project\\XML Copy Editor" ) ) ) #else config ( new wxFileConfig ( _T ( "xmlcopyeditor" ) ) ) #endif @@ -295,6 +295,8 @@ MyApp::MyApp() : checker ( NULL ), server ( NULL ), connection ( NULL ), #ifndef __WXMSW__ wxString poDir = GetLinuxAppDir::run() + wxFileName::GetPathSeparator() + _T ( "po" ) + wxFileName::GetPathSeparator(); wxLocale::AddCatalogLookupPathPrefix ( poDir ); +#else + wxLocale::AddCatalogLookupPathPrefix ( wxT ( "po" ) ); #endif if ( !myLocale.AddCatalog ( _T ( "messages" ) ) )