Commit 4866d341 authored by Ming Rui Zhang's avatar Ming Rui Zhang

settingswidget: change to use setAccountEnabled() to enable/disable account

- to avoid the complexity of setAccountConfig()

Change-Id: Ic05d804d0bcaa8a8f1b3b93b61026f07704effec
parent ef7cb1b0
...@@ -477,10 +477,7 @@ SettingsWidget::slotRegisterName() ...@@ -477,10 +477,7 @@ SettingsWidget::slotRegisterName()
void SettingsWidget::setAccEnableSlot(int state) void SettingsWidget::setAccEnableSlot(int state)
{ {
LRCInstance::editableAccountModel()->enableAccount(LRCInstance::getCurrAccId(), (bool)state); LRCInstance::editableAccountModel()->setAccountEnabled(LRCInstance::getCurrAccId(), static_cast<bool>(state));
auto confProps = LRCInstance::accountModel().getAccountConfig(LRCInstance::getCurrAccId());
LRCInstance::editableAccountModel()->setAccountConfig(LRCInstance::getCurrAccId(), confProps);
} }
void SettingsWidget::delAccountSlot() void SettingsWidget::delAccountSlot()
......
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