wasm: fix non-void function return

Pick-to: 6.2
Change-Id: Ia7ef3367c0531f953c78e43297f67d61b08dbf17
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
bb10
Lorn Potter 2021-06-16 13:45:27 +10:00 committed by Morten Johan Sørvig
parent ae717aa51f
commit d904274176
1 changed files with 3 additions and 2 deletions

View File

@ -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