diff options
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmdrag.cpp')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmdrag.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/platforms/wasm/qwasmdrag.cpp b/src/plugins/platforms/wasm/qwasmdrag.cpp index f088ecb2f6f..1359c4cd78a 100644 --- a/src/plugins/platforms/wasm/qwasmdrag.cpp +++ b/src/plugins/platforms/wasm/qwasmdrag.cpp @@ -160,16 +160,13 @@ void QWasmDrag::onNativeDrop(DragEvent *event) QFlags<Qt::KeyboardModifier> modifiers = event->modifiers; // Accept the native drop event: We are going to async read any dropped - // files, but the + // files, but the browser expects that accepted state is set before any + // async calls. event->acceptDrop(); - qDebug() << "QWasmDrag::onNativeDrop" << event; - const auto dropCallback = [&m_dragState = m_dragState, wasmWindow, targetWindowPos, actions, mouseButton, modifiers](QMimeData *mimeData) { - qDebug() << "QWasmDrag::onNativeDrop callback"; - auto dropResponse = std::make_shared<QPlatformDropQtResponse>(true, Qt::DropAction::CopyAction); *dropResponse = QWindowSystemInterface::handleDrop(wasmWindow->window(), mimeData, targetWindowPos, actions, |