give a parent to the password dialog

svn path=/trunk/KDE/kdegraphics/okular/; revision=805171
This commit is contained in:
Pino Toscano 2008-05-07 19:33:51 +00:00
parent 2d7f6d63e2
commit 5c09d64596

View file

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