Merge branch 'master' into multiple_apis

This commit is contained in:
Luca Beltrame 2015-08-10 17:09:52 +02:00
commit e764ba2c9d
4 changed files with 31 additions and 6 deletions

View file

@ -428,6 +428,12 @@ void DanbooruService::processPostList(KJob *job)
// How many posts do we have to fetch?
if (postList.isEmpty()) {
qCDebug(LIBDANBOORU) << "No posts found";
Q_EMIT(postDownloadFinished());
return;
}
m_postsToFetch = postList.length();
for (auto element : postList) {