[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/kdepim/enterprise4/kdepim/kleopatra/commands
From:       Marc Mutz <mutz () kde ! org>
Date:       2011-02-04 14:45:07
Message-ID: 20110204144507.769FFAC8C5 () svn ! kde ! org
[Download RAW message or body]

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<Key> 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;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic