Commit 259a1c27 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

No auto

"auto r" implies that it's a resource, but it's not.
parent 8deb2498
......@@ -117,11 +117,11 @@ void DataControlDeviceV1Interface::sendSelection(AbstractDataSource *other)
sendClearSelection();
return;
}
auto r = d->createDataOffer(other);
if (!r) {
DataControlOfferV1Interface *offer = d->createDataOffer(other);
if (!offer) {
return;
}
d->send_selection(r->resource());
d->send_selection(offer->resource());
}
void DataControlDeviceV1Interface::sendClearSelection()
......
Markdown is supported
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