add error info when gpg password is wrong

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2261 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-02-09 19:10:42 +00:00
parent fba2a3afae
commit 9262feac1c
3 changed files with 12 additions and 7 deletions

View File

@ -1023,9 +1023,9 @@ bool p3Peers::signGPGCertificate(std::string id)
std::cerr << std::endl;
#endif
AuthGPG::getAuthGPG()->SignCertificateLevel0(id);
AuthGPG::getAuthGPG()->setAcceptToConnectGPGCertificate(id, true);
return true;
return AuthGPG::getAuthGPG()->SignCertificateLevel0(id);
}
bool p3Peers::setAcceptToConnectGPGCertificate(std::string gpg_id, bool acceptance)

View File

@ -162,8 +162,8 @@ void StartDialog::loadCertificates()
{
/* some error msg */
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
"Login Failure",
"*** Wrong Password ***",
tr("Login Failure"),
tr("Maybe password is wrong"),
QMessageBox::Ok);
}
}
@ -174,8 +174,8 @@ void StartDialog::on_labelProfile_linkActivated(QString link)
//gencertdialog->show();
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
"Create a New Profil",
"This will generate a new Profile\n Are you sure you want to continue",
tr("Create a New Profil"),
tr("This will generate a new Profile\n Are you sure you want to continue"),
(QMessageBox::Ok | QMessageBox::No));
if (sb == QMessageBox::Ok)

View File

@ -340,7 +340,12 @@ void ConfCertDialog::denyFriend() {
void ConfCertDialog::signGPGKey() {
std::string gpg_id = rsPeers->getGPGId(mId);
rsPeers->signGPGCertificate(gpg_id);
if (!rsPeers->signGPGCertificate(gpg_id)) {
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
tr("Signature Failure"),
tr("Maybe password is wrong"),
QMessageBox::Ok);
}
loadDialog();
}