Commit 4b175438 authored by Camilo Higuita's avatar Camilo Higuita

fixes from android since we dont have qt 5.114 and depend on 5.13 still

parent d6184822
......@@ -63,6 +63,7 @@ private slots:
uint i = 0;
uint batch = 0;
FMH::MODEL_LIST res;
FMH::MODEL_LIST res_batch;
QList<QUrl> urls;
for(const auto &path : paths)
......@@ -89,18 +90,20 @@ private slots:
emit itemReady(map);
res << map;
res_batch << map;
i++;
if(i == m_bsize) //send a batch
{
emit itemsReady(FMH::MODEL_LIST(res.constBegin()+(batch*m_bsize), res.constEnd()));
emit itemsReady(res_batch);
res_batch.clear ();
batch++;
i = 0;
}
}
}
}
emit itemsReady(FMH::MODEL_LIST(res.constBegin()+(batch*m_bsize), res.constEnd()));
emit itemsReady(res_batch);
emit finished(res);
}
......
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