diff --git a/kpgp.cpp b/kpgp.cpp index 85bf43b13..352b69654 100644 --- a/kpgp.cpp +++ b/kpgp.cpp @@ -490,6 +490,9 @@ Kpgp::getPublicKey(QString _person) for(str=publicKeys.first(); str!=0; str=publicKeys.next()) if(str.contains(adress)) return str; + // reread the database, because key wasn't found... + publicKeys = pgp->pubKeys(); + // FIXME: let user set the key/ get from keyserver // now check if the address contains the key adress = _person.lower(); @@ -765,9 +768,9 @@ Kpgp::SelectPublicKey(QStrList pbkeys, const char *caption) // widgets needed by kpgp //---------------------------------------------------------------------- -KpgpPass::KpgpPass(QWidget *parent, const char *name, bool modal ) - :KDialogBase( i18n("OpenPGP Security Check"), Yes, Yes, Yes, parent, name, - modal, true, i18n("&OK") ) +KpgpPass::KpgpPass(QWidget *parent, const QString &name, bool modal ) + :KDialogBase( parent, name, modal, i18n("OpenPGP Security Check"), + Ok|Cancel ) { QHBox *hbox = makeHBoxMainWidget(); hbox->setSpacing( spacingHint() ); diff --git a/kpgp.h b/kpgp.h index d9a40f7d9..d14e6fe0a 100644 --- a/kpgp.h +++ b/kpgp.h @@ -7,7 +7,7 @@ * @author "J. Nick Koston" * * PGP6 and other enhancements - * @author Andreas Gungl + * @author Andreas Gungl */ #ifndef KPGP_H #define KPGP_H @@ -194,7 +194,7 @@ class KpgpPass : public KDialogBase Q_OBJECT public: - KpgpPass(QWidget *parent=0, const char *name=0, bool modal=true ); + KpgpPass(QWidget *parent=0, const QString &name=QString::null, bool modal=true ); virtual ~KpgpPass(); static QString getPassphrase(QWidget *parent = 0);