summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2021-06-16 13:45:27 +1000
committerMorten Johan Sørvig <morten.sorvig@qt.io>2021-06-21 23:43:02 +0000
commitd904274176d9b74dfedac1e3827cd2cc97693c41 (patch)
tree83d1d49dde5b360b70dfba0c8a0e874bafe5f4b0 /src/plugins
parentae717aa51f5eabaaa5f272578c63201263e72554 (diff)
wasm: fix non-void function return
Pick-to: 6.2 Change-Id: Ia7ef3367c0531f953c78e43297f67d61b08dbf17 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/wasm/qwasmwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp
index a4fb8524c5..1bcc407bc1 100644
--- a/src/plugins/platforms/wasm/qwasmwindow.cpp
+++ b/src/plugins/platforms/wasm/qwasmwindow.cpp
@@ -416,8 +416,9 @@ bool QWasmWindow::windowIsPopupType(Qt::WindowType type) const
{
if (type == Qt::Widget)
type = window()->type();
- if (type == Qt::Tool)
- return false;
+ if (type != Qt::Tool)
+ return true;
+ return false;
}
QT_END_NAMESPACE