mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
don't waste bandwidth with spaces or default-value items
This commit is contained in:
parent
f07bb38e4a
commit
714a0eee50
7 changed files with 15 additions and 9 deletions
|
|
@ -25,6 +25,9 @@ bool SerializableItem::readElement(QXmlStreamReader *xml)
|
|||
|
||||
void SerializableItem::write(QXmlStreamWriter *xml)
|
||||
{
|
||||
if (isEmpty())
|
||||
return;
|
||||
|
||||
xml->writeStartElement(itemType);
|
||||
if (!itemSubType.isEmpty())
|
||||
xml->writeAttribute("type", itemSubType);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue