Commit 241409d4 authored by Karel Slaný's avatar Karel Slaný

Removed saveAllSettings() from Accounts::removeAccount().

parent 814f9df2
......@@ -168,6 +168,7 @@ Component {
}
} else if (index == 4) {
if (accounts.removeAccount(accountListModel, userName, true)) {
settings.saveAllSettings()
pageView.pop(StackView.Immediate)
}
} else {
......
......@@ -322,7 +322,9 @@ Component {
accounts.saveAccountToSettings()
pageView.pop(StackView.Immediate)
} else {
accounts.removeAccount(accountListModel, userNameTextField.text.toString(), false)
if (accounts.removeAccount(accountListModel, userNameTextField.text.toString(), false)) {
settings.saveAllSettings()
}
}
}
} else {
......
......@@ -168,7 +168,6 @@ bool Accounts::removeAccount(const QVariant &acntModelVariant,
/* Delete account from settings */
accountModel->deleteAccount(userName);
GlobalSettingsQmlWrapper::saveAllSettings();
return true;
}
......
......@@ -28,7 +28,6 @@
#include "src/models/accountmodel.h"
#include "src/models/messagemodel.h"
#include "src/settings.h"
#include "src/setwrapper.h"
IsdsWrapper::IsdsWrapper(QObject *parent)
: QObject(parent)
......
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