From 279c99fdf829884b8a544441d0a2cd09e9c8dd27 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 8 Mar 2015 20:08:16 +0100 Subject: Linux/MacOSX: Load preferences if only volume path is given in command line and GUI mode enabled. --- src/Main/UserInterface.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/Main/UserInterface.cpp') 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()); -- cgit v1.2.3