Fix the assert in QWasmClipboard::writeToClipboardApi

The assert condition should be negated.

Change-Id: I901b61012ffaf893744dfb9f762b009f267b629d
Reviewed-by: David Skoland <david.skoland@qt.io>
This commit is contained in:
Mikolaj Boc 2022-11-24 17:21:05 +01:00
parent fa27a59ec3
commit 72bff530f9

View File

@ -250,7 +250,7 @@ bool QWasmClipboard::hasClipboardApi()
void QWasmClipboard::writeToClipboardApi()
{
Q_ASSERT(!m_hasClipboardApi);
Q_ASSERT(m_hasClipboardApi);
// copy event
// browser event handler detected ctrl c if clipboard API