Commit d89d7de7 authored by David Edmundson's avatar David Edmundson
Browse files

Guard against DataSource being deleted during transfer

During a drag the source can disappear at any time. The other client
will be notified, but it may have actions in flight.

Other methods were guarded but not data_offer_finished.
parent 71ffe8a0
Pipeline #51212 passed with stage
in 7 minutes and 3 seconds
......@@ -75,6 +75,9 @@ void DataOfferInterfacePrivate::data_offer_destroy(QtWaylandServer::wl_data_offe
void DataOfferInterfacePrivate::data_offer_finish(Resource *resource)
{
Q_UNUSED(resource)
if (!source) {
return;
}
source->dndFinished();
// TODO: It is a client error to perform other requests than wl_data_offer.destroy after this one
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment