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