mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Fix typo.
Took 7 minutes
This commit is contained in:
parent
c3181a1c0a
commit
7e62235411
2 changed files with 5 additions and 2 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ private:
|
|||
QComboBox *activeGroupCriteriaComboBox;
|
||||
QLabel *formatLabel;
|
||||
QComboBox *formatComboBox;
|
||||
QPushButton *legalityCheckerButton;
|
||||
|
||||
QAction *aRemoveCard, *aIncrement, *aDecrement, *aSwapCard;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue