From 9c03678f5c1cd293eded1c4a2c343190b99d3d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Wed, 3 Jan 2024 13:15:39 +0100 Subject: [PATCH] wasm: finish comment and remove debug output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.7 Change-Id: Iff832637ca600f382e99534c07f7cf35b0b6cdde Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/wasm/qwasmdrag.cpp | 7 ++----- 1 file 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 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(true, Qt::DropAction::CopyAction); *dropResponse = QWindowSystemInterface::handleDrop(wasmWindow->window(), mimeData, targetWindowPos, actions,