mirror of https://github.com/kiwix/libkiwix.git
+ small fix to be able to save relative path in addBookFromPath()
This commit is contained in:
parent
79d00c2b36
commit
bf58cf6b76
|
@ -204,7 +204,8 @@ namespace kiwix {
|
|||
|
||||
if (!pathToSave.empty() && pathToSave != pathToOpen) {
|
||||
book.path = pathToSave;
|
||||
book.pathAbsolute = pathToSave;
|
||||
book.pathAbsolute = isRelativePath(pathToSave) ?
|
||||
computeAbsolutePath(removeLastPathElement(writableLibraryPath, true, false), pathToSave) : pathToSave;
|
||||
}
|
||||
|
||||
if (!checkMetaData ||
|
||||
|
|
Loading…
Reference in New Issue