diff options
Diffstat (limited to 'pica-client/askpassword.cpp')
| -rw-r--r-- | pica-client/askpassword.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pica-client/askpassword.cpp b/pica-client/askpassword.cpp index 05c0c83..e3c0696 100644 --- a/pica-client/askpassword.cpp +++ b/pica-client/askpassword.cpp @@ -2,6 +2,7 @@ #include "globals.h" #include <string.h> #include <QInputDialog> +#include "accounts.h" QMutex AskPassword::passwd_mutex; QMap<QByteArray,QString> AskPassword::idpasswd; @@ -44,9 +45,9 @@ void AskPassword::password_dialog() { bool ok; QString title = QObject::tr("Enter private key passphrase"); - QString text = QObject::tr(QString("Passphrase for (%1)").arg(QByteArray((const char*)account_id, PICA_ID_SIZE).toBase64().constData()).toUtf8().constData()); + QString text = QObject::tr(QString("Passphrase for (%1)").arg(Accounts::GetCurrentAccount().id.toBase64().constData()).toUtf8().constData()); QString psw = QInputDialog::getText((QWidget*)mainwindow,title,text,QLineEdit::Password,QString(),&ok); if (ok) - idpasswd[QByteArray((const char*)account_id, PICA_ID_SIZE)] = psw; + idpasswd[Accounts::GetCurrentAccount().id] = psw; } |
