diff --git a/YACReaderLibrary/library_creator.cpp b/YACReaderLibrary/library_creator.cpp index aa3108fa..4ba17b4f 100644 --- a/YACReaderLibrary/library_creator.cpp +++ b/YACReaderLibrary/library_creator.cpp @@ -595,6 +595,16 @@ void ThumbnailCreator::create() //p.save(_target); return; } +#ifndef Q_OS_MAC + //poppler only, not mac + if (pdfComic->isLocked()) + { + QLOG_WARN() << "Extracting cover: unable to open PDF file " << _fileSource; + delete pdfComic; + return; + } + +#endif _numPages = pdfComic->numPages(); if(_numPages >= _coverPage) {