From 2cfd5b1a677fbce4f586c9912ccbd1a8925f6eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sat, 8 Feb 2025 01:36:17 +0100 Subject: [PATCH] Include long setName in checkbox label --- cockatrice/src/dialogs/dlg_select_set_for_cards.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp b/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp index 7c9b56068..2420d85c9 100644 --- a/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp +++ b/cockatrice/src/dialogs/dlg_select_set_for_cards.cpp @@ -384,7 +384,8 @@ SetEntryWidget::SetEntryWidget(DlgSelectSetForCards *_parent, const QString &_se setLayout(layout); QHBoxLayout *headerLayout = new QHBoxLayout(); - checkBox = new QCheckBox(setName, this); + CardSetPtr set = CardDatabaseManager::getInstance()->getSet(setName); + checkBox = new QCheckBox("(" + set->getShortName() + ") - " + set->getLongName(), this); connect(checkBox, &QCheckBox::checkStateChanged, parent, &DlgSelectSetForCards::updateCardLists); expandButton = new QPushButton("+", this); countLabel = new QLabel(QString::number(count), this);