mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-27 11:00:37 -05: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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class NotifyQt: public QObject, public NotifyBase
|
|||
virtual void notifyOwnAvatarChanged() ;
|
||||
virtual void notifyOwnStatusMessageChanged() ;
|
||||
|
||||
virtual std::string askForPassword(const std::string& window_title,const std::string& text) ;
|
||||
virtual std::string askForPassword(const std::string& key_details) ;
|
||||
|
||||
signals:
|
||||
// It's beneficial to send info to the GUI using signals, because signals are thread-safe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue