Guard UpdateRequest handling.

This commit is contained in:
John Preston 2019-07-05 16:29:02 +02:00
parent 567bf60644
commit 4bd0683e91
1 changed files with 4 additions and 0 deletions

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