mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
Added _aboutToQuit guard on eventFilter()
This commit is contained in:
parent
a375ea8bd6
commit
52e5bdb360
1 changed files with 4 additions and 0 deletions
|
@ -3650,6 +3650,10 @@ bool Application::event(QEvent* event) {
|
||||||
|
|
||||||
bool Application::eventFilter(QObject* object, QEvent* event) {
|
bool Application::eventFilter(QObject* object, QEvent* event) {
|
||||||
|
|
||||||
|
if (_aboutToQuit) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (event->type() == QEvent::Leave) {
|
if (event->type() == QEvent::Leave) {
|
||||||
getApplicationCompositor().handleLeaveEvent();
|
getApplicationCompositor().handleLeaveEvent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue