mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:01:09 +02:00
Fix crash for active async messageBoxes on exit of client
This commit is contained in:
parent
06dc9fc39f
commit
119b97216f
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