mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
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:
parent
0dfcc20409
commit
5a38ecdab3
1 changed files with 1 additions and 1 deletions
|
@ -910,7 +910,7 @@ int reader::setup_book(QString book, int i, bool run_parser) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reading files
|
// Reading files
|
||||||
if(is_epub == false) {
|
if(is_epub == false && is_pdf == false && is_image == false) {
|
||||||
if(run_parser == true) {
|
if(run_parser == true) {
|
||||||
QDirIterator it("/inkbox/book/split");
|
QDirIterator it("/inkbox/book/split");
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
|
|
Loading…
Reference in a new issue