From cb95e1f2ee686cf381f3d8dee3b3140c4bed06f5 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Mon, 5 Aug 2013 19:07:10 +0800 Subject: [PATCH] addBook() save also books pathAbsolute&indexPathAbsolute --- src/common/kiwix/library.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/kiwix/library.cpp b/src/common/kiwix/library.cpp index 8f948614b..9ccc91471 100644 --- a/src/common/kiwix/library.cpp +++ b/src/common/kiwix/library.cpp @@ -96,6 +96,9 @@ namespace kiwix { if (itr->path.empty()) itr->path = book.path; + if (itr->pathAbsolute.empty()) + itr->pathAbsolute = book.pathAbsolute; + if (itr->url.empty()) itr->url = book.url; @@ -104,6 +107,11 @@ namespace kiwix { itr->indexType = book.indexType; } + if (itr->indexPathAbsolute.empty()) { + itr->indexPathAbsolute = book.indexPathAbsolute; + itr->indexType = book.indexType; + } + if (itr->faviconMimeType.empty()) { itr->favicon = book.favicon; itr->faviconMimeType = book.faviconMimeType;