Move folder status model initialisation to member init list in AccountSettings

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-07-08 16:45:41 +08:00
parent 68cff89c8b
commit 5c0c2afd57
No known key found for this signature in database
GPG Key ID: C839200C384636B0

View File

@ -174,12 +174,12 @@ protected:
AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent)
: QWidget(parent)
, _ui(new Ui::AccountSettings)
, _model(new FolderStatusModel)
, _accountState(accountState)
, _userInfo(accountState, false, true)
{
_ui->setupUi(this);
_model = new FolderStatusModel;
_model->setAccountState(_accountState);
_model->setParent(this);
const auto delegate = new FolderStatusDelegate;