diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-03-08 20:08:16 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-03-08 20:14:30 +0100 |
commit | 279c99fdf829884b8a544441d0a2cd09e9c8dd27 (patch) | |
tree | e12410d6b8567d7bca1b15fc59b4dac106393e49 /src/Main/UserInterface.cpp | |
parent | f80f7d47d587710f657ab6f6c20140ddb503250e (diff) | |
download | VeraCrypt-279c99fdf829884b8a544441d0a2cd09e9c8dd27.tar.gz VeraCrypt-279c99fdf829884b8a544441d0a2cd09e9c8dd27.zip |
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.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Main/UserInterface.cpp b/src/Main/UserInterface.cpp index 39c4274f..9894a853 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()); |