Commit 61e0f7ff authored by Ming Rui Zhang's avatar Ming Rui Zhang

newaccountsettingsview: change from enableAccount() to setAccountEnabled()

Change-Id: Id0661eb2be322131a2178cb3beede13cadc9bc84
parent f801d20f
...@@ -1431,8 +1431,7 @@ set_account_enabled(GObject*, GParamSpec*, NewAccountSettingsView *view) ...@@ -1431,8 +1431,7 @@ set_account_enabled(GObject*, GParamSpec*, NewAccountSettingsView *view)
newState = gtk_switch_get_active(GTK_SWITCH(priv->sip_account_enabled)); newState = gtk_switch_get_active(GTK_SWITCH(priv->sip_account_enabled));
} }
if (newState != (*priv->accountInfo_)->enabled) { if (newState != (*priv->accountInfo_)->enabled) {
(*priv->accountInfo_)->accountModel->enableAccount((*priv->accountInfo_)->id, newState); (*priv->accountInfo_)->accountModel->setAccountEnabled((*priv->accountInfo_)->id, newState);
new_account_settings_view_save_account(view);
} }
} }
......
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