mirror of https://github.com/kiwix/libkiwix.git
wix::Manager::getBooksIDs() now returns diff files too.
This commit is contained in:
parent
14a4394f6d
commit
1299c4c264
|
@ -353,9 +353,7 @@ namespace kiwix {
|
|||
std::vector<kiwix::Book>::iterator itr;
|
||||
|
||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||
if(itr->origID=="") {
|
||||
booksIds.push_back(itr->id);
|
||||
}
|
||||
}
|
||||
|
||||
return booksIds;
|
||||
|
@ -397,10 +395,8 @@ namespace kiwix {
|
|||
std::vector<kiwix::Book>::iterator itr;
|
||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||
if ( itr->id == id) {
|
||||
if(itr->origID=="") {
|
||||
book = *itr;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue