summaryrefslogtreecommitdiffstats
path: root/sigmod
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-26 19:10:26 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-26 19:10:26 -0400
commit768c51bcc811d3808fd9979132c39f2c33b40392 (patch)
treef7e14d0ebfa046a5a0f80afbf5a20269a941b788 /sigmod
parent9b8f100267ff0b6e74bf1a221950faa69e7479a7 (diff)
downloadsigen-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.cpp3
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);