mirror of https://github.com/kiwix/libkiwix.git
addBook() save also books pathAbsolute&indexPathAbsolute
This commit is contained in:
parent
65486616ed
commit
cb95e1f2ee
|
@ -96,6 +96,9 @@ namespace kiwix {
|
||||||
if (itr->path.empty())
|
if (itr->path.empty())
|
||||||
itr->path = book.path;
|
itr->path = book.path;
|
||||||
|
|
||||||
|
if (itr->pathAbsolute.empty())
|
||||||
|
itr->pathAbsolute = book.pathAbsolute;
|
||||||
|
|
||||||
if (itr->url.empty())
|
if (itr->url.empty())
|
||||||
itr->url = book.url;
|
itr->url = book.url;
|
||||||
|
|
||||||
|
@ -104,6 +107,11 @@ namespace kiwix {
|
||||||
itr->indexType = book.indexType;
|
itr->indexType = book.indexType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (itr->indexPathAbsolute.empty()) {
|
||||||
|
itr->indexPathAbsolute = book.indexPathAbsolute;
|
||||||
|
itr->indexType = book.indexType;
|
||||||
|
}
|
||||||
|
|
||||||
if (itr->faviconMimeType.empty()) {
|
if (itr->faviconMimeType.empty()) {
|
||||||
itr->favicon = book.favicon;
|
itr->favicon = book.favicon;
|
||||||
itr->faviconMimeType = book.faviconMimeType;
|
itr->faviconMimeType = book.faviconMimeType;
|
||||||
|
|
Loading…
Reference in New Issue