Fixed lobby names with utf8 characters.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4748 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-01-02 00:25:43 +00:00
parent da69e1f1ad
commit 3ac5ead40e
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ ChatLobbyDialog::~ChatLobbyDialog()
void ChatLobbyDialog::setNickName(const QString& nick) void ChatLobbyDialog::setNickName(const QString& nick)
{ {
rsMsgs->setNickNameForChatLobby(lobby_id,nick.toStdString()) ; rsMsgs->setNickNameForChatLobby(lobby_id,nick.toUtf8().constData()) ;
} }
void ChatLobbyDialog::updateStatus(const QString &peer_id, int status) void ChatLobbyDialog::updateStatus(const QString &peer_id, int status)

View File

@ -98,7 +98,7 @@ void CreateLobbyDialog::createLobby()
} }
// create chat lobby !! // create chat lobby !!
std::string lobby_name = ui->lobbyName_LE->text().toStdString() ; std::string lobby_name = ui->lobbyName_LE->text().toUtf8().constData() ;
// add to group // add to group
ChatLobbyId id = rsMsgs->createChatLobby(lobby_name, mShareList); ChatLobbyId id = rsMsgs->createChatLobby(lobby_name, mShareList);

View File

@ -284,7 +284,7 @@ void PopupChatDialog::processSettings(bool bLoad)
for(std::list<ChatLobbyInfo>::const_iterator it(linfos.begin());it!=linfos.end();++it) for(std::list<ChatLobbyInfo>::const_iterator it(linfos.begin());it!=linfos.end();++it)
if( (*it).lobby_id == lobby_id) if( (*it).lobby_id == lobby_id)
{ {
popupchatdialog = new ChatLobbyDialog(id,lobby_id,QString::fromStdString((*it).lobby_name)); popupchatdialog = new ChatLobbyDialog(id,lobby_id,QString::fromUtf8((*it).lobby_name.c_str()));
chatDialogs[id] = popupchatdialog; chatDialogs[id] = popupchatdialog;
PopupChatWindow *window = PopupChatWindow::getWindow(false); PopupChatWindow *window = PopupChatWindow::getWindow(false);