Give a nicer error message if gpg-agent isn't found.

BUGS: 132227
GUI:

svn path=/branches/KDE/3.5/kdepim/; revision=571824
wilder-work
Allen Winter 20 years ago
parent ab203ddaa2
commit e820e80656
  1. 8
      messagecomposer.cpp

@ -2155,9 +2155,11 @@ void MessageComposer::pgpSignedMsg( const QCString & cText, Kleo::CryptoMessageF
}
mSignature = signature;
Q_ASSERT( !mSignature.isNull() ); // if you hit this, check gpg-agent is running, then blame gpgme.
if ( mSignature.isNull() ) {
KMessageBox::error( mComposeWin, i18n( "The signing operation failed for an unknown reason." ) );
if ( mSignature.isEmpty() ) {
KMessageBox::sorry( mComposeWin,
i18n( "The signing operation failed. "
"Please make sure that the gpg-agent program "
"is running." ) );
}
}

Loading…
Cancel
Save