diff --git a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp index 39bb6f6f8..f7347b24e 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp @@ -74,7 +74,7 @@ ChatLobbyDialog::~ChatLobbyDialog() 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) diff --git a/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp b/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp index 7ee8eb183..b7be55321 100644 --- a/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp @@ -98,7 +98,7 @@ void CreateLobbyDialog::createLobby() } // 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 ChatLobbyId id = rsMsgs->createChatLobby(lobby_name, mShareList); diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp index a0e5dd9ab..2be775e6e 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp @@ -284,7 +284,7 @@ void PopupChatDialog::processSettings(bool bLoad) for(std::list::const_iterator it(linfos.begin());it!=linfos.end();++it) 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; PopupChatWindow *window = PopupChatWindow::getWindow(false);