VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main')
-rw-r--r--src/Main/Application.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/Application.cpp b/src/Main/Application.cpp
index 2d7db155..e579142b 100644
--- a/src/Main/Application.cpp
+++ b/src/Main/Application.cpp
@@ -35,9 +35,8 @@ namespace VeraCrypt
#endif
FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir)
{
- wxStandardPaths& stdPaths = wxStandardPaths::Get();
DirectoryPath configDir;
if (!Core->IsInPortableMode())
{
@@ -45,8 +44,9 @@ namespace VeraCrypt
wxFileName configPath (L"~/Library/Application Support/VeraCrypt");
configPath.Normalize();
configDir = wstring (configPath.GetFullPath());
#else
+ wxStandardPaths& stdPaths = wxStandardPaths::Get();
configDir = wstring (stdPaths.GetUserDataDir());
#endif
}
else