mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 10:25:36 +00:00
poppler clearly states in its doc since 36 minutes ago that passwords have to be latin1 encoded
svn path=/trunk/KDE/kdegraphics/okular/; revision=731537
This commit is contained in:
parent
ec72d7e654
commit
3a15da028d
|
@ -411,7 +411,7 @@ bool PDFGenerator::init(QVector<Okular::Page*> & pagesVector, const QString &wal
|
|||
}
|
||||
|
||||
// 2. reopen the document using the password
|
||||
pdfdoc->unlock( password.toLocal8Bit(), password.toLocal8Bit() );
|
||||
pdfdoc->unlock( password.toLatin1(), password.toLatin1() );
|
||||
|
||||
// 3. if the password is correct and the user chose to remember it, store it to the wallet
|
||||
if ( !pdfdoc->isLocked() && wallet && /*safety check*/ wallet->isOpen() && keep )
|
||||
|
|
Loading…
Reference in a new issue