mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-30 11:45:08 +00:00
Guard UpdateRequest handling.
This commit is contained in:
parent
567bf60644
commit
4bd0683e91
@ -502,7 +502,11 @@ bool Sandbox::notify(QObject *receiver, QEvent *e) {
|
||||
const auto wrap = createEventNestingLevel();
|
||||
const auto type = e->type();
|
||||
if (type == QEvent::UpdateRequest) {
|
||||
const auto weak = make_weak(receiver);
|
||||
_widgetUpdateRequests.fire({});
|
||||
if (!weak) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return QApplication::notify(receiver, e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user