This commit is contained in:
Lukas Brübach 2024-12-29 17:32:57 +01:00
parent b6a96089ec
commit b26005a0c4
3 changed files with 9 additions and 13 deletions

View file

@ -1045,11 +1045,11 @@ void TabDeckEditor::openDeckFromFile(const QString &fileName, DeckOpenLocation d
}
} else {
delete l;
updateBannerCardComboBox();
if (!l->getBannerCard().isEmpty()) {
qDebug() << "Found banner card:" << l->getBannerCard();
bannerCardComboBox->setCurrentIndex(bannerCardComboBox->findText(l->getBannerCard()));
}
updateBannerCardComboBox();
if (!l->getBannerCard().isEmpty()) {
qDebug() << "Found banner card:" << l->getBannerCard();
bannerCardComboBox->setCurrentIndex(bannerCardComboBox->findText(l->getBannerCard()));
}
QMessageBox::critical(this, tr("Error"), tr("Could not open deck at %1").arg(fileName));
}
setSaveStatus(true);