From kde-commits Fri Feb 04 14:45:07 2011 From: Marc Mutz Date: Fri, 04 Feb 2011 14:45:07 +0000 To: kde-commits Subject: branches/kdepim/enterprise4/kdepim/kleopatra/commands Message-Id: <20110204144507.769FFAC8C5 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129683074922655 SVN commit 1218782 by mutz: ChangePassphraseCommand: in doStart(), only check what we demanded in restrictions() > > If this check fails, we finish sliently. This happened for all S/MIME keys. M +1 -4 changepassphrasecommand.cpp --- branches/kdepim/enterprise4/kdepim/kleopatra/commands/changepassphrasecommand.cpp #1218781:1218782 @@ -123,10 +123,7 @@ void ChangePassphraseCommand::doStart() { const std::vector keys = d->keys(); - if ( keys.size() != 1 || - keys.front().protocol() != GpgME::OpenPGP || - !keys.front().hasSecret() || - keys.front().subkey(0).isNull() ) { + if ( keys.size() != 1 || !keys.front().hasSecret() ) { d->finished(); return; }