diff options
Diffstat (limited to 'certmanager/lib/ui')
-rw-r--r-- | certmanager/lib/ui/passphrasedialog.cpp | 5 | ||||
-rw-r--r-- | certmanager/lib/ui/passphrasedialog.h | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/certmanager/lib/ui/passphrasedialog.cpp b/certmanager/lib/ui/passphrasedialog.cpp index a2d0e7c36..e9f1e3e98 100644 --- a/certmanager/lib/ui/passphrasedialog.cpp +++ b/certmanager/lib/ui/passphrasedialog.cpp @@ -100,13 +100,12 @@ Kleo::PassphraseDialog::~PassphraseDialog() { delete d; d = 0; } -const char * Kleo::PassphraseDialog::passphrase() const { +const TQString Kleo::PassphraseDialog::passphrase() const { return d->lineedit->password(); } void Kleo::PassphraseDialog::slotOk() { - const char * pass = passphrase(); - emit finished( pass ? pass : "" ); + emit finished( passphrase() ); KDialogBase::slotOk(); } diff --git a/certmanager/lib/ui/passphrasedialog.h b/certmanager/lib/ui/passphrasedialog.h index e83eca422..2416f811b 100644 --- a/certmanager/lib/ui/passphrasedialog.h +++ b/certmanager/lib/ui/passphrasedialog.h @@ -63,13 +63,13 @@ namespace Kleo { bool modal=true ); ~PassphraseDialog(); - const char * passphrase() const; + const TQString passphrase() const; signals: /** emitted when the user clicks Ok. \a pass is never NULL. \c pass only valid inside slots connected to this signal. */ - void finished( const char * pass ); + void finished( const TQString pass ); /** emitted when the user clicks Cancel. */ void canceled(); |