From 12f6534e77d28ba5dc5fd5f555d43e7cd9da9336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 15 Nov 2016 02:51:22 +0100 Subject: NOISSUE mark used accounts/sessions in selection menus --- application/dialogs/ProfileSelectDialog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'application/dialogs') diff --git a/application/dialogs/ProfileSelectDialog.cpp b/application/dialogs/ProfileSelectDialog.cpp index 5c42bc7b..1bd8d06a 100644 --- a/application/dialogs/ProfileSelectDialog.cpp +++ b/application/dialogs/ProfileSelectDialog.cpp @@ -50,8 +50,13 @@ ProfileSelectDialog::ProfileSelectDialog(const QString &message, int flags, QWid MojangAccountPtr account = m_accounts->at(i); for (auto profile : account->profiles()) { + auto profileLabel = profile.name; + if(account->isInUse()) + { + profileLabel += tr(" (in use)"); + } auto item = new QTreeWidgetItem(view); - item->setText(0, profile.name); + item->setText(0, profileLabel); item->setIcon(0, SkinUtils::getFaceFromCache(profile.id)); item->setData(0, MojangAccountList::PointerRole, QVariant::fromValue(account)); items.append(item); -- cgit v1.2.3