mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Public key encryption: initiate new security handler
This commit is contained in:
@ -1202,6 +1202,12 @@ void PDFProgramController::onActionEncryptionTriggered()
|
||||
{
|
||||
pdf::PDFSecurityHandlerPointer updatedSecurityHandler = dialog.getUpdatedSecurityHandler();
|
||||
|
||||
if (!updatedSecurityHandler)
|
||||
{
|
||||
QMessageBox::critical(m_mainWindow, QApplication::applicationDisplayName(), tr("Failed to create security handler."));
|
||||
return;
|
||||
}
|
||||
|
||||
// Jakub Melka: If we changed encryption (password), recheck, that user doesn't
|
||||
// forgot (or accidentally entered wrong) password. So, we require owner authentization
|
||||
// to continue.
|
||||
|
Reference in New Issue
Block a user