mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 07:59:29 -05:00
Fixed showing utf8 characters in chat lobby name
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6468 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1dfcc78cfb
commit
81874da2cc
@ -158,7 +158,7 @@ void ChatLobbyDialog::init(const std::string &peerId, const QString &title)
|
|||||||
if (rsMsgs->getVirtualPeerId(lobbyIt->lobby_id, vpid)) {
|
if (rsMsgs->getVirtualPeerId(lobbyIt->lobby_id, vpid)) {
|
||||||
if (vpid == peerId) {
|
if (vpid == peerId) {
|
||||||
QString msg = tr("Welcome to lobby %1").arg(QString::fromUtf8(lobbyIt->lobby_name.c_str()));
|
QString msg = tr("Welcome to lobby %1").arg(QString::fromUtf8(lobbyIt->lobby_name.c_str()));
|
||||||
_lobby_name = QString(lobbyIt->lobby_name.c_str()) ;
|
_lobby_name = QString::fromUtf8(lobbyIt->lobby_name.c_str()) ;
|
||||||
if (!lobbyIt->lobby_topic.empty()) {
|
if (!lobbyIt->lobby_topic.empty()) {
|
||||||
msg += "\n" + tr("Topic: %1").arg(QString::fromUtf8(lobbyIt->lobby_topic.c_str()));
|
msg += "\n" + tr("Topic: %1").arg(QString::fromUtf8(lobbyIt->lobby_topic.c_str()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user