VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/UserInterface.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-03-08 19:08:16 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-03-08 19:14:30 (GMT)
commit279c99fdf829884b8a544441d0a2cd09e9c8dd27 (patch)
treee12410d6b8567d7bca1b15fc59b4dac106393e49 /src/Main/UserInterface.cpp
parentf80f7d47d587710f657ab6f6c20140ddb503250e (diff)
downloadVeraCrypt-279c99fdf829884b8a544441d0a2cd09e9c8dd27.zip
VeraCrypt-279c99fdf829884b8a544441d0a2cd09e9c8dd27.tar.gz
Linux/MacOSX: Load preferences if only volume path is given in command line and GUI mode enabled.
Diffstat (limited to 'src/Main/UserInterface.cpp')
-rw-r--r--src/Main/UserInterface.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Main/UserInterface.cpp b/src/Main/UserInterface.cpp
index 39c4274..9894a85 100644
--- a/src/Main/UserInterface.cpp
+++ b/src/Main/UserInterface.cpp
@@ -501,10 +501,8 @@ namespace VeraCrypt
LangString.Init();
Core->Init();
-
- wxCmdLineParser parser;
- parser.SetCmdLine (argc, argv);
- CmdLine.reset (new CommandLineInterface (parser, InterfaceType));
+
+ CmdLine.reset (new CommandLineInterface (argc, argv, InterfaceType));
SetPreferences (CmdLine->Preferences);
Core->SetApplicationExecutablePath (Application::GetExecutablePath());