mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 14:34:42 -04:00
Fix bug in librarycreator pdf handling (poppler, passwords)
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user