mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 03:30:20 +00:00
give a parent to the password dialog
svn path=/trunk/KDE/kdegraphics/okular/; revision=805171
This commit is contained in:
parent
2d7f6d63e2
commit
5c09d64596
|
@ -359,7 +359,7 @@ bool PDFGenerator::init(QVector<Okular::Page*> & pagesVector, const QString &wal
|
|||
firstInput = false;
|
||||
|
||||
// if the user presses cancel, abort opening
|
||||
KPasswordDialog dlg( 0, wallet ? KPasswordDialog::ShowKeepPassword : KPasswordDialog::KPasswordDialogFlags() );
|
||||
KPasswordDialog dlg( document()->widget(), wallet ? KPasswordDialog::ShowKeepPassword : KPasswordDialog::KPasswordDialogFlags() );
|
||||
dlg.setCaption( i18n( "Document Password" ) );
|
||||
dlg.setPrompt( prompt );
|
||||
if( !dlg.exec() )
|
||||
|
|
Loading…
Reference in a new issue