2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 14:17:45 +00:00

Guard UpdateRequest handling.

This commit is contained in:
John Preston
2019-07-05 16:29:02 +02:00
parent 567bf60644
commit 4bd0683e91

View File

@@ -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);
}