From 599eebf511492d9394279db90628a5bd485b10ff Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 5 Apr 2018 21:56:04 -0600 Subject: [PATCH] Remove the current players blurb --- src/citra_qt/multiplayer/lobby_p.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/citra_qt/multiplayer/lobby_p.h b/src/citra_qt/multiplayer/lobby_p.h index 7523d881d2..a177bc66d4 100644 --- a/src/citra_qt/multiplayer/lobby_p.h +++ b/src/citra_qt/multiplayer/lobby_p.h @@ -207,15 +207,19 @@ public: return LobbyItem::data(role); } auto members = data(MemberListRole).toList(); - QString out = QObject::tr("Current Players in the room"); + QString out; + bool first = true; for (const auto& member : members) { + if (!first) + out += '\n'; const auto& m = member.value(); if (m.GetGameName().isEmpty()) { - out += QString(QObject::tr("\n%1 is not playing a game")).arg(m.GetUsername()); + out += QString(QObject::tr("%1 is not playing a game")).arg(m.GetUsername()); } else { - out += QString(QObject::tr("\n%1 is playing %2")) - .arg(m.GetUsername(), m.GetGameName()); + out += + QString(QObject::tr("%1 is playing %2")).arg(m.GetUsername(), m.GetGameName()); } + first = false; } return out; }