mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
Merge pull request #15501 from thoys/fix/asyncDailogsExitCrash
BUGZ-73: Fix crash for active async messageBoxes on exit of client
This commit is contained in:
commit
2618ad09c3
1 changed files with 3 additions and 1 deletions
|
@ -252,7 +252,9 @@ private slots:
|
||||||
_finished = true;
|
_finished = true;
|
||||||
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
||||||
emit response(_result);
|
emit response(_result);
|
||||||
offscreenUi->removeModalDialog(qobject_cast<QObject*>(this));
|
if (!offscreenUi.isNull()) {
|
||||||
|
offscreenUi->removeModalDialog(qobject_cast<QObject*>(this));
|
||||||
|
}
|
||||||
disconnect(_dialog);
|
disconnect(_dialog);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue