From 8b8c40eef583f66574dca35fa49d66c8d325ac7c Mon Sep 17 00:00:00 2001 From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com> Date: Tue, 9 Jun 2015 15:24:15 -0400 Subject: [PATCH] fix setAccountProperty Account property are not set the first time because of a not needed check of EditState in setAccountProperty Refs #75146 Change-Id: I013bae45f04fc8c07936ef77079106e9a24c8445 --- src/account.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/account.cpp b/src/account.cpp index 6592b574..9f6f2931 100644 --- a/src/account.cpp +++ b/src/account.cpp @@ -1127,14 +1127,9 @@ bool AccountPrivate::setAccountProperty(const QString& param, const QString& val } else if (accChanged) { - if (m_CurrentState == Account::EditState::MODIFIED_COMPLETE - || m_CurrentState == Account::EditState::MODIFIED_INCOMPLETE - || m_CurrentState == Account::EditState::NEW - ) { - m_hAccountDetails[param] = val; - emit q_ptr->changed(q_ptr); - emit q_ptr->propertyChanged(q_ptr,param,val,buf); - } + m_hAccountDetails[param] = val; + emit q_ptr->changed(q_ptr); + emit q_ptr->propertyChanged(q_ptr,param,val,buf); q_ptr->performAction(Account::EditAction::MODIFY); } -- GitLab