diff --git a/wx/xmission.cc b/wx/xmission.cc index 0d0475675..481fb5812 100755 --- a/wx/xmission.cc +++ b/wx/xmission.cc @@ -53,6 +53,7 @@ extern "C" { #include #include + #include #include #include @@ -390,11 +391,16 @@ void MyFrame :: OnOpen( wxCommandEvent& WXUNUSED(event) ) bool MyApp :: OnInit( ) { - const wxString downloadDir = wxStandardPaths::Get().GetDocumentsDir( ); + tr_benc settings; + const char * configDir; - handle = tr_sessionInit( tr_getDefaultConfigDir(), - toStr(downloadDir).c_str(), - "wx" ); + tr_bencInitDict( &settings, 0 ); + tr_sessionGetDefaultSettings( &settings ); + configDir = tr_getDefaultConfigDir( "xmission" ); + + handle = tr_sessionInit( "wx", configDir, true, &settings ); + + tr_bencFree( &settings ); wxCmdLineParser cmdParser( cmdLineDesc, argc, argv ); if( cmdParser.Parse ( ) )