Fix count of remote books in `Library::Impl::getBookCount`

This commit is contained in:
Matthieu Gautier 2022-04-26 17:23:39 +02:00
parent 52c12b0c2f
commit 288b4ae7df
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}
}