QWaylandDataDevice: Explicitly send null for rejected drag offer
qtwaylandscanner sends an empty string for a null QString but `wl_data_offer.accept` uses null for "not accepted". Pick-to: 6.7 6.6 6.5 Change-Id: I793d4315c9775a4bdc63085231318db8df829c8a Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
9d0b3cf0d2
commit
6b8be3a4a9
@ -336,7 +336,8 @@ void QWaylandDataDevice::sendResponse(Qt::DropActions supportedActions, const QP
|
||||
|
||||
m_dragOffer->accept(m_enterSerial, m_dragOffer->firstFormat());
|
||||
} else {
|
||||
m_dragOffer->accept(m_enterSerial, QString());
|
||||
// qtwaylandscanner doesn't support null strings yet (sends empty string), call it directly.
|
||||
::wl_data_offer_accept(m_dragOffer->object(), m_enterSerial, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user