QEventLoop: remove unnecessary bits of Qt 5 suggestion

Change-Id: I2bbf422288924c198645fffd16a974803ab43b7f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit 96a1da00d29b2367643c82f75be7cdc1dad3e2a0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Thiago Macieira 2021-09-29 18:13:53 -07:00 committed by Qt Cherry-pick Bot
parent 6219662bc8
commit dfe98121e9

View File

@ -199,9 +199,7 @@ int QEventLoop::exec(ProcessEventsFlags flags)
if (exceptionCaught) { if (exceptionCaught) {
qWarning("Qt has caught an exception thrown from an event handler. Throwing\n" qWarning("Qt has caught an exception thrown from an event handler. Throwing\n"
"exceptions from an event handler is not supported in Qt.\n" "exceptions from an event handler is not supported in Qt.\n"
"You must not let any exception whatsoever propagate through Qt code.\n" "You must not let any exception whatsoever propagate through Qt code.");
"If that is not possible, in Qt 5 you must at least reimplement\n"
"QCoreApplication::notify() and catch all exceptions there.\n");
} }
locker.relock(); locker.relock();
auto threadData = d->threadData.loadRelaxed(); auto threadData = d->threadData.loadRelaxed();