mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Template because MacOs.
This commit is contained in:
parent
ea70c7e5e9
commit
ec085ec9e8
1 changed files with 3 additions and 3 deletions
|
|
@ -842,7 +842,8 @@ void TabDeckEditor::updateBannerCardComboBox()
|
||||||
CardInfoPtr info = CardDatabaseManager::getInstance()->getCardByNameAndProviderId(
|
CardInfoPtr info = CardDatabaseManager::getInstance()->getCardByNameAndProviderId(
|
||||||
currentCard->getName(), currentCard->getCardProviderId());
|
currentCard->getName(), currentCard->getCardProviderId());
|
||||||
if (info) {
|
if (info) {
|
||||||
bannerCardSet.insert(QPair(currentCard->getName(), currentCard->getCardProviderId()));
|
bannerCardSet.insert(
|
||||||
|
QPair<QString, QString>(currentCard->getName(), currentCard->getCardProviderId()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -885,8 +886,7 @@ void TabDeckEditor::updateBannerCardComboBox()
|
||||||
void TabDeckEditor::setBannerCard(int /* changedIndex */)
|
void TabDeckEditor::setBannerCard(int /* changedIndex */)
|
||||||
{
|
{
|
||||||
QVariantMap data = bannerCardComboBox->itemData(bannerCardComboBox->currentIndex()).toMap();
|
QVariantMap data = bannerCardComboBox->itemData(bannerCardComboBox->currentIndex()).toMap();
|
||||||
qDebug() << "Banner card is " << data["name"].toString() << " and " << data["uuid"].toString();
|
deckModel->getDeckList()->setBannerCard(QPair<QString, QString>(data["name"].toString(), data["uuid"].toString()));
|
||||||
deckModel->getDeckList()->setBannerCard(QPair(data["name"].toString(), data["uuid"].toString()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabDeckEditor::updateCardInfo(CardInfoPtr _card)
|
void TabDeckEditor::updateCardInfo(CardInfoPtr _card)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue