The index path must be absolute.

This commit is contained in:
Matthieu Gautier 2018-10-24 15:05:14 +02:00
parent 422dde9ff2
commit eb407956b9

View File

@ -1072,7 +1072,10 @@ int main(int argc, char** argv)
} }
} }
if (!indexPath.empty()) { if (!indexPath.empty()) {
manager.setBookIndex(library.getBooksIds()[0], indexPath); if (isRelativePath(indexPath)) {
indexPath = computeAbsolutePath(indexPath, getCurrentDirectory());
}
library.getBookById(library.getBooksIds()[0]).setIndexPath(indexPath);
} }
} }