1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

Fix Windows build

This commit is contained in:
Paul Licameli 2019-05-16 13:44:48 -04:00
parent a7469ad674
commit 31a80fb4d1

View File

@ -27,6 +27,7 @@ used throughout Audacity into this one place.
#include "MemoryX.h" #include "MemoryX.h"
#include <wx/app.h>
#include <wx/defs.h> #include <wx/defs.h>
#include <wx/filename.h> #include <wx/filename.h>
#include <wx/intl.h> #include <wx/intl.h>
@ -388,7 +389,7 @@ wxFileNameWrapper FileNames::DefaultToDocumentsFolder(const wxString &preference
#ifdef __WIN32__ #ifdef __WIN32__
wxFileName defaultPath( wxStandardPaths::Get().GetDocumentsDir(), "" ); wxFileName defaultPath( wxStandardPaths::Get().GetDocumentsDir(), "" );
defaultPath.AppendDir( wxGetApp().GetAppName() ); defaultPath.AppendDir( wxTheApp->GetAppName() );
result.SetPath( gPrefs->Read( preference, defaultPath.GetPath( wxPATH_GET_VOLUME ) ) ); result.SetPath( gPrefs->Read( preference, defaultPath.GetPath( wxPATH_GET_VOLUME ) ) );
// MJB: Bug 1899 & Bug 2007. Only create directory if the result is the default path // MJB: Bug 1899 & Bug 2007. Only create directory if the result is the default path