mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 18:26:11 -04:00
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…
x
Reference in New Issue
Block a user