mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-20 23:10:39 -04:00
add gpg password static store when gpg password callback is called
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2260 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a9029b26c1
commit
fba2a3afae
4 changed files with 41 additions and 20 deletions
|
@ -42,10 +42,12 @@ void NotifyQt::notifyOwnAvatarChanged()
|
|||
emit ownAvatarChanged() ;
|
||||
}
|
||||
|
||||
std::string NotifyQt::askForPassword(const std::string& window_title,const std::string& text)
|
||||
std::string NotifyQt::askForPassword(const std::string& key_details)
|
||||
{
|
||||
return QInputDialog::getText(NULL, QString::fromStdString(window_title),
|
||||
QString::fromStdString(text), QLineEdit::Password,
|
||||
|
||||
return QInputDialog::getText(NULL, tr("GPG key passphrase"),
|
||||
tr("Please enter the password to unlock the following GPG key:\n") + QString::fromStdString(key_details),
|
||||
QLineEdit::Password,
|
||||
NULL, NULL).toStdString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue