Commit 63b2e8ff authored by Karel Slaný's avatar Karel Slaný

Removed Accounts::saveAccountToSettings().

parent bf77c285
......@@ -319,7 +319,7 @@ Component {
testAccount.checked, rememberPassword.checked,
useLS.checked, certPathLabelId.text.toString())) {
if (isds.getAccountInfo(userNameTextField.text.toString(), true)) {
accounts.saveAccountToSettings()
settings.saveAllSettings()
pageView.pop(StackView.Immediate)
} else {
if (accounts.removeAccount(accountListModel, userNameTextField.text.toString(), false)) {
......
......@@ -30,7 +30,6 @@
#include "src/net/isds_wrapper.h"
#include "src/net/isds_session.h"
#include "src/settings.h"
#include "src/setwrapper.h"
#include "src/sqlite/account_db.h"
#include "src/models/accountmodel.h"
#include "src/sqlite/message_db_container.h"
......@@ -302,17 +301,6 @@ bool Accounts::createAccount(const QVariant &acntModelVariant,
return true;
}
/* ========================================================================= */
/*
* Slot: Load account info from databse and fill QML page.
*/
void Accounts::saveAccountToSettings(void)
/* ========================================================================= */
{
GlobalSettingsQmlWrapper::saveAllSettings();
}
/* ========================================================================= */
/*
* Slot: Load account info from databse and fill QML page.
......
......@@ -77,11 +77,6 @@ public:
const QString &userName, const QString &pwd, bool isTestAccount,
bool rememberPwd, bool storeToDisk, const QString &certPath);
/*!
* @brief Save account data to settings.
*/
Q_INVOKABLE void saveAccountToSettings(void);
/*!
* @brief Get account data.
*/
......
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