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:
defnax 2010-06-16 18:01:23 +00:00
parent 9033e4fa56
commit fe6d44ecde

View File

@ -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"),