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) {
|
||||
auto& book = pair.second;
|
||||
if ((!book.getPath().empty() && localBooks)
|
||||
|| (book.getPath().empty() && remoteBooks)) {
|
||||
|| (!book.getUrl().empty() && remoteBooks)) {
|
||||
result++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue