mirror of https://github.com/kiwix/libkiwix.git
+ small modification in the behaviour of addBook()
This commit is contained in:
parent
74caed4811
commit
d851d065e8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue