+ small modification in the behaviour of addBook()

This commit is contained in:
kelson42 2011-11-28 10:50:57 +00:00
parent 74caed4811
commit d851d065e8
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ namespace kiwix {
if (this->readBookFromPath(pathToOpen, book)) { if (this->readBookFromPath(pathToOpen, book)) {
if (!pathToSave.empty() && pathToSave != pathToOpen) { if (pathToSave != pathToOpen) {
book.path = pathToSave; book.path = pathToSave;
book.pathAbsolute = isRelativePath(pathToSave) ? book.pathAbsolute = isRelativePath(pathToSave) ?
computeAbsolutePath(removeLastPathElement(writableLibraryPath, true, false), pathToSave) : pathToSave; computeAbsolutePath(removeLastPathElement(writableLibraryPath, true, false), pathToSave) : pathToSave;