diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp index d5413f37..014978a1 100644 --- a/src/Main/GraphicUserInterface.cpp +++ b/src/Main/GraphicUserInterface.cpp @@ -728,7 +728,7 @@ namespace VeraCrypt options.Keyfiles = make_shared (GetPreferences().DefaultKeyfiles); if ((options.Password && !options.Password->IsEmpty()) - || (options.Keyfiles && !options.Keyfiles->empty())) + || (options.Keyfiles && !options.Keyfiles->empty() && (options.TrueCryptMode || options.Password))) { try {