mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-21 15:46:27 -04:00
fixed to export full certificate on networkDialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3147 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9033e4fa56
commit
fe6d44ecde
@ -662,7 +662,7 @@ void NetworkDialog::on_actionExportKey_activated()
|
||||
{
|
||||
qDebug() << " exportcert";
|
||||
|
||||
std::string cert = rsPeers->saveCertificateToString(rsPeers->getOwnId());
|
||||
std::string cert = rsPeers->GetRetroshareInvite();
|
||||
if (cert.empty()) {
|
||||
QMessageBox::information(this, tr("RetroShare"),
|
||||
tr("Sorry, create certificate failed"),
|
||||
@ -678,7 +678,7 @@ void NetworkDialog::on_actionExportKey_activated()
|
||||
|
||||
if (qdir.isEmpty() == false) {
|
||||
QFile CertFile (qdir);
|
||||
if (CertFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||
if (CertFile.open(QIODevice::WriteOnly/* | QIODevice::Text*/)) {
|
||||
if (CertFile.write(QByteArray(cert.c_str())) > 0) {
|
||||
QMessageBox::information(this, tr("RetroShare"),
|
||||
tr("Certificate file successfully created"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user