Fix crash in app state change

This commit is contained in:
Gaelle Braud 2026-02-27 13:34:09 +01:00
parent 536a6b7c68
commit a6f5a01ce6

View file

@ -1585,9 +1585,11 @@ bool App::event(QEvent *event) {
if (state->applicationState() == Qt::ApplicationActive) {
Utils::smartShowWindow(getLastActiveWindow());
}
for (int i = 0; i < getAccountList()->rowCount(); ++i) {
auto accountCore = getAccountList()->getAt<AccountCore>(i);
handleAccountActivity(accountCore);
if (getAccountList()) {
for (int i = 0; i < getAccountList()->rowCount(); ++i) {
auto accountCore = getAccountList()->getAt<AccountCore>(i);
handleAccountActivity(accountCore);
}
}
}