Skip to content

Commit

Permalink
Make v4 Cockatrice XML importer convert picURL to picurl to match…
Browse files Browse the repository at this point in the history
… v3 behavior and allow picURL images to load. (#3585)
  • Loading branch information
basicer committed Feb 21, 2019
1 parent d519f99 commit 9d27b36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cockatrice/src/carddbparser/cockatricexml4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ void CockatriceXml4Parser::loadCardsFromXml(QXmlStreamReader &xml)
QString setName = xml.readElementText(QXmlStreamReader::IncludeChildElements);
CardInfoPerSet setInfo(internalAddSet(setName));
for (QXmlStreamAttribute attr : attrs) {
setInfo.setProperty(attr.name().toString(), attr.value().toString());
QString attrName = attr.name().toString();
if (attrName == "picURL")
attrName = "picurl";
setInfo.setProperty(attrName, attr.value().toString());
}
sets.insert(setName, setInfo);
// relatd cards
Expand Down

0 comments on commit 9d27b36

Please sign in to comment.