3
0
Fork 0

The index path must be absolute.

fix-bug-pid
Matthieu Gautier 7 years ago
parent 422dde9ff2
commit eb407956b9

@ -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);
} }
} }

Loading…
Cancel
Save