From kde-commits Tue Aug 31 12:45:58 2004 From: Volker Krause Date: Tue, 31 Aug 2004 12:45:58 +0000 To: kde-commits Subject: kdepim/kmail Message-Id: <20040831124558.99F0A1D62 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109395695228367 CVS commit by vkrause: Write the password immediately to the wallet when migrating since SMTP servers are not kept in memory, we will lose it otherwise. Fixes migration of SMTP accounts to kwallet at least partly. M +3 -1 kmtransport.cpp 1.41 --- kdepim/kmail/kmtransport.cpp #1.40:1.41 @@ -90,4 +90,5 @@ void KMTransportInfo::readConfig(int id) config->deleteEntry( "pass" ); mPasswdDirty = true; + writeConfig( id ); } else { // read password if wallet is open, defer otherwise @@ -126,5 +127,6 @@ void KMTransportInfo::writeConfig(int id i18n("KWallet is Not Running."), "KWalletWarning" ); config->writeEntry( "pass", KMAccount::encryptStr( passwd() ) ); - } + } else + mPasswdDirty = false; }