mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
+ fix library update with readonly libraries
This commit is contained in:
@ -91,7 +91,9 @@ namespace kiwix {
|
||||
/* Try to find it */
|
||||
std::vector<kiwix::Book>::iterator itr;
|
||||
for ( itr = this->books.begin(); itr != this->books.end(); ++itr ) {
|
||||
if (itr->id == book.id) {
|
||||
if (itr->id == book.id && (itr->readOnly == book.readOnly || book.readOnly)) {
|
||||
|
||||
itr->readOnly = book.readOnly;
|
||||
|
||||
if (itr->path.empty())
|
||||
itr->path = book.path;
|
||||
|
Reference in New Issue
Block a user