mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
Fix crash in app state change
This commit is contained in:
parent
536a6b7c68
commit
a6f5a01ce6
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue