mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Minor reword
This commit is contained in:
parent
fb348c85f7
commit
e484d2b0cc
1 changed files with 9 additions and 9 deletions
|
|
@ -115,11 +115,11 @@ void CardInfoFrameWidget::setCard(CardInfoPtr card)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info) {
|
if (info) {
|
||||||
auto relations = info->getAllRelatedCards();
|
const auto &cardRelations = info->getAllRelatedCards();
|
||||||
|
for (const auto &cardRelation : cardRelations) {
|
||||||
for (auto relation : relations) {
|
if (cardRelation->getDoesTransform()) {
|
||||||
if (relation->getDoesTransform()) {
|
|
||||||
viewTransformationButton->setVisible(true);
|
viewTransformationButton->setVisible(true);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -148,11 +148,11 @@ void CardInfoFrameWidget::setCard(AbstractCardItem *card)
|
||||||
void CardInfoFrameWidget::viewTransformation()
|
void CardInfoFrameWidget::viewTransformation()
|
||||||
{
|
{
|
||||||
if (info) {
|
if (info) {
|
||||||
auto relations = info->getAllRelatedCards();
|
const auto &cardRelations = info->getAllRelatedCards();
|
||||||
|
for (const auto &cardRelation : cardRelations) {
|
||||||
for (auto relation : relations) {
|
if (cardRelation->getDoesTransform()) {
|
||||||
if (relation->getDoesTransform()) {
|
viewTransformationButton->setVisible(true);
|
||||||
setCard(relation->getName());
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue