Commit 6fd4addc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 279325 - access to kwallet is not closed after closing kmail

FIXED-IN: 4.10.2
BUG: 279325
parent c1ffc086
......@@ -493,6 +493,7 @@ void ImapResource::doSetOnline(bool online)
m_taskList.clear();
delete m_idle;
m_idle = 0;
Settings::self()->clearCachedPassword();
} else if ( online && !m_pool->isConnected() ) {
scheduleConnectionAttempt();
}
......
......@@ -107,6 +107,11 @@ void Settings::setWinId( WId winId )
m_winId = winId;
}
void Settings::clearCachedPassword()
{
m_password.clear();
}
void Settings::requestPassword()
{
if ( !m_password.isEmpty() ||
......
......@@ -48,6 +48,8 @@ public:
QString rootRemoteId() const;
void renameRootCollection( const QString &newName );
void clearCachedPassword();
signals:
void passwordRequestCompleted( const QString &password, bool userRejected );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment