PadMappingDialog: Show player ID in player dropdown

Makes it easier to differentiate players that have the same name.
This commit is contained in:
Léo Lam 2018-06-04 21:10:19 +02:00
parent b26a47e642
commit d797bf2ee7
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,10 @@ int PadMappingDialog::exec()
players.append(tr("None"));
for (const auto& player : m_players)
players.append(QString::fromStdString(player->name));
{
players.append(
QStringLiteral("%1 (%2)").arg(QString::fromStdString(player->name)).arg(player->pid));
}
for (auto& combo_group : {m_gc_boxes, m_wii_boxes})
{