addBook() save also books pathAbsolute&indexPathAbsolute

This commit is contained in:
kelson42 2013-08-05 19:07:10 +08:00
parent 65486616ed
commit cb95e1f2ee
1 changed files with 8 additions and 0 deletions

View File

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