Fix for ticket #129

Utf8 chars don't show up for peer names, in private chat and file list.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4576 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-08-27 22:54:05 +00:00
parent 4f1d1b8dc7
commit 185307ad37
3 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ void GenCertDialog::genPerson()
QCoreApplication::processEvents();
while(QAbstractEventDispatcher::instance()->processEvents(QEventLoop::AllEvents)) ;
RsInit::GeneratePGPCertificate(ui.name_input->text().toUtf8().constData(), ui.email_input->text().toUtf8().constData(), ui.password_input->text().toStdString(), PGPId, err_string);
RsInit::GeneratePGPCertificate(ui.name_input->text().toUtf8().constData(), ui.email_input->text().toUtf8().constData(), ui.password_input->text().toUtf8().constData(), PGPId, err_string);
setCursor(Qt::ArrowCursor) ;
}

View File

@ -154,7 +154,7 @@ ConnectFriendWizard::accept()
}
if (!this->field(LOCATION_FIELD_CONNECT_FRIEND_WIZARD).isNull()) {
std::cerr << "ConnectFriendWizard::accept() : setting peerLocation." << std::endl;
rsPeers->setLocation(ssl_Id, this->field(LOCATION_FIELD_CONNECT_FRIEND_WIZARD).toString().toStdString());
rsPeers->setLocation(ssl_Id, this->field(LOCATION_FIELD_CONNECT_FRIEND_WIZARD).toString().toUtf8().constData());
}
}

View File

@ -140,7 +140,7 @@ bool NotifyQt::askForPassword(const std::string& key_details, bool prev_is_bad,
RsAutoUpdatePage::unlockAllEvents() ;
if (ret == QDialog::Accepted) {
password = dialog.textValue().toStdString();
password = dialog.textValue().toUtf8().constData();
return true;
}