diff options
Diffstat (limited to 'framework/src/domain/settings/accountsettings.cpp')
-rw-r--r-- | framework/src/domain/settings/accountsettings.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/framework/src/domain/settings/accountsettings.cpp b/framework/src/domain/settings/accountsettings.cpp index c174adfe..acf85522 100644 --- a/framework/src/domain/settings/accountsettings.cpp +++ b/framework/src/domain/settings/accountsettings.cpp | |||
@@ -292,7 +292,9 @@ void AccountSettings::saveImapResource() | |||
292 | {"server", mImapServer}, | 292 | {"server", mImapServer}, |
293 | {"username", mImapUsername} | 293 | {"username", mImapUsername} |
294 | }); | 294 | }); |
295 | Kube::AccountKeyring{mAccountIdentifier}.storePassword(mImapIdentifier, mImapPassword); | 295 | if (!mImapPassword.isEmpty()) { |
296 | Kube::AccountKeyring{mAccountIdentifier}.storePassword(mImapIdentifier, mImapPassword); | ||
297 | } | ||
296 | } | 298 | } |
297 | 299 | ||
298 | void AccountSettings::saveCardDavResource() | 300 | void AccountSettings::saveCardDavResource() |
@@ -301,7 +303,9 @@ void AccountSettings::saveCardDavResource() | |||
301 | {"server", mCardDavServer}, | 303 | {"server", mCardDavServer}, |
302 | {"username", mCardDavUsername} | 304 | {"username", mCardDavUsername} |
303 | }); | 305 | }); |
304 | Kube::AccountKeyring{mAccountIdentifier}.storePassword(mCardDavIdentifier, mCardDavPassword); | 306 | if (!mCardDavPassword.isEmpty()) { |
307 | Kube::AccountKeyring{mAccountIdentifier}.storePassword(mCardDavIdentifier, mCardDavPassword); | ||
308 | } | ||
305 | } | 309 | } |
306 | 310 | ||
307 | void AccountSettings::saveMaildirResource() | 311 | void AccountSettings::saveMaildirResource() |
@@ -317,7 +321,9 @@ void AccountSettings::saveMailtransportResource() | |||
317 | {"server", mSmtpServer}, | 321 | {"server", mSmtpServer}, |
318 | {"username", mSmtpUsername} | 322 | {"username", mSmtpUsername} |
319 | }); | 323 | }); |
320 | Kube::AccountKeyring{mAccountIdentifier}.storePassword(mMailtransportIdentifier, mSmtpPassword); | 324 | if (!mSmtpPassword.isEmpty()) { |
325 | Kube::AccountKeyring{mAccountIdentifier}.storePassword(mMailtransportIdentifier, mSmtpPassword); | ||
326 | } | ||
321 | } | 327 | } |
322 | 328 | ||
323 | void AccountSettings::saveIdentity() | 329 | void AccountSettings::saveIdentity() |