Lint some stuff.

This commit is contained in:
Lukas Brübach 2025-01-12 20:00:03 +01:00
parent 6fd3fd55a9
commit 238a6266d6
5 changed files with 41 additions and 11 deletions

View file

@ -432,8 +432,8 @@ bool DeckList::readElement(QXmlStreamReader *xml)
bannerCard = QPair<QString, QString>(cardName, providerId);
} else if (childName == "tags") {
tags.clear(); // Clear existing tags
while (!(xml->isEndElement() && childName == "tags")) {
if (xml->readNextStartElement() && childName == "tag") {
while (xml->readNextStartElement()) {
if (xml->name().toString() == "tag") {
tags.append(xml->readElementText());
}
}