Don't show a warning when opening a database without WITH_XC_YUBIKEY.

This commit is contained in:
James Ring 2019-10-22 16:26:36 -07:00 committed by Jonathan White
parent 62027d35ea
commit b8830dfd32

View File

@ -52,7 +52,11 @@ int DatabaseCommand::execute(const QStringList& arguments)
db = Utils::unlockDatabase(args.at(0),
!parser->isSet(Command::NoPasswordOption),
parser->value(Command::KeyFileOption),
#ifdef WITH_XC_YUBIKEY
parser->value(Command::YubiKeyOption),
#else
"",
#endif
parser->isSet(Command::QuietOption) ? Utils::DEVNULL : Utils::STDOUT,
Utils::STDERR);
if (!db) {