mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -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
1 changed files with 2 additions and 2 deletions
|
@ -662,7 +662,7 @@ void NetworkDialog::on_actionExportKey_activated()
|
||||||
{
|
{
|
||||||
qDebug() << " exportcert";
|
qDebug() << " exportcert";
|
||||||
|
|
||||||
std::string cert = rsPeers->saveCertificateToString(rsPeers->getOwnId());
|
std::string cert = rsPeers->GetRetroshareInvite();
|
||||||
if (cert.empty()) {
|
if (cert.empty()) {
|
||||||
QMessageBox::information(this, tr("RetroShare"),
|
QMessageBox::information(this, tr("RetroShare"),
|
||||||
tr("Sorry, create certificate failed"),
|
tr("Sorry, create certificate failed"),
|
||||||
|
@ -678,7 +678,7 @@ void NetworkDialog::on_actionExportKey_activated()
|
||||||
|
|
||||||
if (qdir.isEmpty() == false) {
|
if (qdir.isEmpty() == false) {
|
||||||
QFile CertFile (qdir);
|
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) {
|
if (CertFile.write(QByteArray(cert.c_str())) > 0) {
|
||||||
QMessageBox::information(this, tr("RetroShare"),
|
QMessageBox::information(this, tr("RetroShare"),
|
||||||
tr("Certificate file successfully created"),
|
tr("Certificate file successfully created"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue