Fix for 2549915.

Fix for 2544835.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@995 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
jens1224 2009-02-03 21:58:59 +00:00
parent 4ffdd9c792
commit e29b0b5b46

View File

@ -67,7 +67,7 @@ void InviteDialog::emailbutton()
std::string mailstr = "mailto:";
mailstr += "&subject=RetroShare Invite";
mailstr += "?subject=RetroShare Invite";
mailstr += "&body=";
mailstr += ui.emailText->toPlainText().toStdString();
@ -107,12 +107,8 @@ void InviteDialog::setInfo(std::string invite)
void InviteDialog::savecertbutton(void)
{
std::string filename = rsPeers->getPeerName(rsPeers->getOwnId()); // file name will be user name
filename += ".pqi"; // append retroshare cert extension
QString qdir = QFileDialog::getExistingDirectory(this, tr("Please Choose Directory to Save Certificate"), "",
false); // get current directory
qdir += tr(filename.c_str()); // append file name to directory
rsPeers->SaveCertificateToFile(rsPeers->getOwnId(), qdir.toStdString()); // save to file
QString qdir = QFileDialog::getSaveFileName(this, "Please choose a filename", QDir::homePath(), "RetroShare Certificate (*.pqi)");
rsPeers->SaveCertificateToFile(rsPeers->getOwnId(), qdir.toStdString()); // save to file
}