From 83cf2985e941ee9ca6f0ef076ca4f5770cfb1f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Wed, 10 Aug 2022 13:31:41 +0200 Subject: [PATCH] wasm: streamline the exec warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit State the problem and suggest possible solutions for the app developer. Pick-to: 6.4 Change-Id: I0484c4eb31020ec0016005f43f910f32a319b850 Reviewed-by: Tor Arne Vestbø --- src/corelib/kernel/qeventdispatcher_wasm.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/corelib/kernel/qeventdispatcher_wasm.cpp b/src/corelib/kernel/qeventdispatcher_wasm.cpp index 82c960cebbb..7ae29e616d7 100644 --- a/src/corelib/kernel/qeventdispatcher_wasm.cpp +++ b/src/corelib/kernel/qeventdispatcher_wasm.cpp @@ -369,12 +369,8 @@ void QEventDispatcherWasm::handleApplicationExec() void QEventDispatcherWasm::handleDialogExec() { if (!qt_have_asyncify()) { - qWarning() << "Warning: dialog exec() is not supported on Qt for WebAssembly in this" - << "configuration. Please use show() instead, or enable experimental support" - << "for asyncify.\n" - << "When using exec() (without asyncify) the dialog will show, the user can interact" - << "exec() call never returns, stack content at the time of the exec() call" - << "is leaked, and the exec() call may interfere with input event processing"; + qWarning() << "Warning: exec() is not supported on Qt for WebAssembly in this configuration. Please build" + << "with asyncify support, or use an asynchronous API like QDialog::open()"; emscripten_sleep(1); // This call never returns } // For the asyncify case we do nothing here and wait for events in wait()