Fix typo.

Took 7 minutes
This commit is contained in:
Lukas Brübach 2025-09-09 03:04:29 +02:00
parent c3181a1c0a
commit 7e62235411
2 changed files with 5 additions and 2 deletions

View file

@ -126,7 +126,7 @@ void DeckEditorDeckDockWidget::createDeckDock()
formatComboBox->addItem("Loading Database...");
formatComboBox->setEnabled(false); // Disable until loaded
auto legalityCheckerButton = new QPushButton(this);
legalityCheckerButton = new QPushButton(this);
connect(legalityCheckerButton, &QPushButton::clicked, this, &DeckEditorDeckDockWidget::checkDeckFormatLegality);
@ -287,7 +287,7 @@ void DeckEditorDeckDockWidget::checkDeckFormatLegality()
for (const QString &prop : card.getCardPtr()->getProperties()) {
if (prop.startsWith("format-")) {
hasFormatProperty = true;
if (prop == formatProperty && card.getCardPtr()->getProperty(formatProperty) == "legal9") {
if (prop == formatProperty && card.getCardPtr()->getProperty(formatProperty) == "legal") {
isLegal = true;
break;
}
@ -728,6 +728,8 @@ void DeckEditorDeckDockWidget::retranslateUi()
commentsLabel->setText(tr("&Comments:"));
activeGroupCriteriaLabel->setText(tr("Group by:"));
formatLabel->setText(tr("Format:"));
legalityCheckerButton->setText(tr("Check card legality"));
hashLabel1->setText(tr("Hash:"));
aIncrement->setText(tr("&Increment number"));

View file

@ -76,6 +76,7 @@ private:
QComboBox *activeGroupCriteriaComboBox;
QLabel *formatLabel;
QComboBox *formatComboBox;
QPushButton *legalityCheckerButton;
QAction *aRemoveCard, *aIncrement, *aDecrement, *aSwapCard;