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

This commit is contained in:
James Ring authored and Jonathan White committed 2019-10-22 22:51:58 -04:00
1 parent 62027d35ea
commit b8830dfd32
1 file changed
+4
+4
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) {