diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 19:10:26 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 19:10:26 -0400 |
commit | 768c51bcc811d3808fd9979132c39f2c33b40392 (patch) | |
tree | f7e14d0ebfa046a5a0f80afbf5a20269a941b788 /sigmod | |
parent | 9b8f100267ff0b6e74bf1a221950faa69e7479a7 (diff) | |
download | sigen-768c51bcc811d3808fd9979132c39f2c33b40392.tar.gz sigen-768c51bcc811d3808fd9979132c39f2c33b40392.tar.xz sigen-768c51bcc811d3808fd9979132c39f2c33b40392.zip |
Split up the document in Rules as well
Diffstat (limited to 'sigmod')
-rw-r--r-- | sigmod/Rules.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sigmod/Rules.cpp b/sigmod/Rules.cpp index afa9dc95..78680653 100644 --- a/sigmod/Rules.cpp +++ b/sigmod/Rules.cpp @@ -125,7 +125,8 @@ void Rules::load(const QDomElement& xml) QDomElement Rules::save() const { - QDomElement xml = QDomDocument().createElement(className()); + QDomDocument doc; + QDomElement xml = doc.createElement(className()); SAVE(genderAllowed); SAVE(breedingAllowed); SAVE(criticalDomains); |