mirror of https://github.com/kiwix/libkiwix.git
Fix count of remote books in `Library::Impl::getBookCount`
This commit is contained in:
parent
52c12b0c2f
commit
288b4ae7df
|
@ -103,7 +103,7 @@ Library::Impl::getBookCount(const bool localBooks, const bool remoteBooks) const
|
||||||
for (auto& pair: m_books) {
|
for (auto& pair: m_books) {
|
||||||
auto& book = pair.second;
|
auto& book = pair.second;
|
||||||
if ((!book.getPath().empty() && localBooks)
|
if ((!book.getPath().empty() && localBooks)
|
||||||
|| (book.getPath().empty() && remoteBooks)) {
|
|| (!book.getUrl().empty() && remoteBooks)) {
|
||||||
result++;
|
result++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue