Merged revisions 970489 via svnmerge from

svn+ssh://tmcguire@svn.kde.org/home/kde/branches/kdepim/enterprise4/kdepim

........
  r970489 | tmcguire | 2009-05-20 13:12:25 +0200 (Wed, 20 May 2009) | 2 lines
  
  To be consistent with POP: When the user enters an IMAP password, automatically check the "store password" checkbox
........

svn path=/trunk/KDE/kdepim/; revision=970661
wilder-work
Thomas McGuire 17 years ago
parent ea299559c9
commit 4ef5389ee4
  1. 12
      accountdialog.cpp
  2. 3
      accountdialog.h

@ -324,6 +324,8 @@ void AccountDialog::makeImapAccountPage( bool connected )
connect( mImap.ui.useDefaultIdentityCheck, SIGNAL( toggled(bool) ), this, SLOT( slotIdentityCheckboxChanged() ) );
connect( mImap.ui.checkCapabilities, SIGNAL(clicked()), SLOT(slotCheckImapCapabilities()));
connect( mImap.encryptionButtonGroup, SIGNAL(buttonClicked(int)), SLOT(slotImapEncryptionChanged(int)) );
connect( mImap.ui.passwordEdit, SIGNAL( textEdited( const QString& ) ),
this, SLOT( slotImapPasswordChanged( const QString& ) ) );
// TODO (marc/bo): Test this
mSieveConfigEditor = new SieveConfigEditor( mImap.ui.tabWidget );
@ -694,7 +696,7 @@ void AccountDialog::slotPopEncryptionChanged( int id )
checkHighest( mPop.authButtonGroup );
}
void AccountDialog::slotPopPasswordChanged(const QString& text)
void AccountDialog::slotPopPasswordChanged( const QString& text )
{
if ( text.isEmpty() )
mPop.ui.storePasswordCheck->setCheckState( Qt::Unchecked );
@ -702,6 +704,14 @@ void AccountDialog::slotPopPasswordChanged(const QString& text)
mPop.ui.storePasswordCheck->setCheckState( Qt::Checked );
}
void AccountDialog::slotImapPasswordChanged( const QString& text )
{
if ( text.isEmpty() )
mImap.ui.storePasswordCheck->setCheckState( Qt::Unchecked );
else
mImap.ui.storePasswordCheck->setCheckState( Qt::Checked );
}
void AccountDialog::slotImapEncryptionChanged( int id )
{
kDebug() << id;

@ -113,7 +113,8 @@ class AccountDialog : public KDialog
void slotFilterOnServerClicked();
void slotPipeliningClicked();
void slotPopEncryptionChanged(int);
void slotPopPasswordChanged(const QString& text);
void slotPopPasswordChanged( const QString& text );
void slotImapPasswordChanged( const QString& text );
void slotImapEncryptionChanged(int);
void slotCheckPopCapabilities();
void slotCheckImapCapabilities();

Loading…
Cancel
Save