diff --git a/common/decklist.cpp b/common/decklist.cpp index c7c57207..a4fe437b 100644 --- a/common/decklist.cpp +++ b/common/decklist.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include "decklist.h" AbstractDecklistNode::AbstractDecklistNode(InnerDecklistNode *_parent) @@ -193,10 +192,9 @@ bool DeckList::readElement(QXmlStreamReader *xml) name = currentElementText; else if (xml->name() == "comments") comments = currentElementText; - else if (xml->name() == "cockatrice_deck") { - qDebug() << "deck finished!"; + else if (xml->name() == "cockatrice_deck") return true; - } + currentElementText.clear(); } else if (xml->isStartElement() && (xml->name() == "zone")) currentZone = new InnerDecklistNode(xml->attributes().value("name").toString(), root);