- Make sure the current crypto module is actually used.

- Fix warning.
- No C-style checking for != 0 (except 0 pointers).

svn path=/trunk/kdepim/; revision=313335
wilder-work
Ingo Klcker 22 years ago
parent b1b2574c92
commit 9e9818f84c
  1. 5
      kmcomposewin.cpp

@ -1107,7 +1107,7 @@ void KMComposeWin::setupActions(void)
connect(mSignAction, SIGNAL(toggled(bool)),
SLOT(slotSignToggled( bool )));
if( KMail::CryptPlugFactory::instance()->list().count() ){
if ( KMail::CryptPlugFactory::instance()->list().count() > 0 ) {
QStringList lst;
lst << i18n( "inline OpenPGP (built-in)" );
CryptPlugWrapper* current;
@ -1133,9 +1133,10 @@ void KMComposeWin::setupActions(void)
// Set last chosen one if possible
QString last = composerConfig.readEntry( "CryptPlug" );
if ( !last.isEmpty() )
for ( int i=0; i<lst.count(); ++i )
for ( unsigned int i=0; i<lst.count(); ++i )
if ( last == lst[i] ) {
mCryptoModuleAction->setCurrentItem( i );
slotSelectCryptoModule();
break;
}
}

Loading…
Cancel
Save