Skip to content

Commit

Permalink
Don't show a warning when opening a database without WITH_XC_YUBIKEY.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjamesr committed Oct 22, 2019
1 parent 2d44c7e commit d2dc7af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/DatabaseCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d2dc7af

Please sign in to comment.