Commit 5c09d645 authored by Pino Toscano's avatar Pino Toscano

give a parent to the password dialog

svn path=/trunk/KDE/kdegraphics/okular/; revision=805171
parent 2d7f6d63
......@@ -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() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment