+ better deal with accented paths

This commit is contained in:
kelson42 2011-09-05 19:21:58 +00:00
parent 6959085e3c
commit cf07bf827b
1 changed files with 6 additions and 6 deletions

View File

@ -256,17 +256,17 @@ namespace kiwix {
if (this->readBookFromPath(pathToOpen, book)) {
if (!pathToSave.empty() && pathToSave != pathToOpen) {
book.path = pathToSave;
book.pathAbsolute = pathToSave;
}
if (!checkMetaData ||
checkMetaData && !book.title.empty() && !book.language.empty() && !book.date.empty()) {
book.url = url;
library.addBook(book);
return true;
}
if (!pathToSave.empty() && pathToSave != pathToOpen) {
book.path = pathToSave;
book.pathAbsolute = pathToSave;
}
}
return false;