summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2022-08-10 13:31:41 +0200
committerMorten Sørvig <morten.sorvig@qt.io>2022-08-17 04:52:46 +0200
commit83cf2985e941ee9ca6f0ef076ca4f5770cfb1f2c (patch)
tree5f369a48d607efd80832b9010af24e3d1bce6f33 /src/corelib/kernel
parentf347682fd52fd8e94f15a06cda9f1a64ebc4d552 (diff)
wasm: streamline the exec warning
State the problem and suggest possible solutions for the app developer. Pick-to: 6.4 Change-Id: I0484c4eb31020ec0016005f43f910f32a319b850 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qeventdispatcher_wasm.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_wasm.cpp b/src/corelib/kernel/qeventdispatcher_wasm.cpp
index 82c960cebb..7ae29e616d 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()