Fix bug in librarycreator pdf handling (poppler, passwords)

This commit is contained in:
Felix Kauselmann 2015-03-18 15:43:02 +01:00
parent 7e7b35a004
commit 948f624691

View File

@ -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)
{