give a parent to the password dialog

svn path=/trunk/KDE/kdegraphics/okular/; revision=805171
remotes/origin/KDE/4.1
Pino Toscano 18 years ago
parent 2d7f6d63e2
commit 5c09d64596
  1. 2
      generators/poppler/generator_pdf.cpp

@ -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…
Cancel
Save