mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix bug in librarycreator pdf handling (poppler, passwords)
This commit is contained in:
parent
7e7b35a004
commit
948f624691
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user