reader: Fix PDF segmentation fault bug on page turn

This bug happened sometimes when the user would go to a specific page in the document or tried to continue reading a PDF from a certain page other than the first one. This commit fixes this that.
This commit is contained in:
Nicolas Mailloux 2022-07-16 14:45:01 -04:00
parent 0dfcc20409
commit 5a38ecdab3

View file

@ -910,7 +910,7 @@ int reader::setup_book(QString book, int i, bool run_parser) {
}
// Reading files
if(is_epub == false) {
if(is_epub == false && is_pdf == false && is_image == false) {
if(run_parser == true) {
QDirIterator it("/inkbox/book/split");
while (it.hasNext()) {