mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Merge pull request #13674 from r3tk0n/16984-CompositorHelper
Added _aboutToQuit guard on eventFilter()
This commit is contained in:
commit
99c26e6363
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