diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-22 11:58:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-22 11:58:47 +0200 |
commit | f25a8fb49abf8a9b7ba5d6f8fbd4c05bd647c1c0 (patch) | |
tree | c1066b0c9bd9d4a0e1be952dcad7b65af39baa79 /framework/src/domain | |
parent | 2a60a0723257cfd6855233b9af27dc9735915435 (diff) | |
download | kube-f25a8fb49abf8a9b7ba5d6f8fbd4c05bd647c1c0.tar.gz kube-f25a8fb49abf8a9b7ba5d6f8fbd4c05bd647c1c0.zip |
Fixed showing a loginview after the account setup
The view managment is starting to become a mess. I guess we'll need
something like a state machine in the long run managing the view
transitions.
Diffstat (limited to 'framework/src/domain')
-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() |