Skip to content
Commit 721d18cf authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

ResourceBase: cancelTask() when PrepareItemsRetrieval job returns 0 items

It can happen that an Item is removed from the Server between the Server
sending a requestItemDelivery() request and the Resource scheduling the
retrieval. In such case the ItemFetchJob returns 0 Items. Instead of
passing an empty list into the resource implementation, just cancel the
task.

Also fixes a crash in Debug builds due to Q_ASSERT unconditionally
calling items.first().
parent da7070a7
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