summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/containers/kolabconfiguration.h5
-rw-r--r--src/kolabconversions.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/containers/kolabconfiguration.h b/src/containers/kolabconfiguration.h
index c011131..e3601cf 100644
--- a/src/containers/kolabconfiguration.h
+++ b/src/containers/kolabconfiguration.h
@@ -110,8 +110,8 @@ private:
};
struct Relation {
- Relation(){}
- Relation(const std::string &name, const std::string &type): mName(name), mType(type) {}
+ Relation(): mPriority(-1) {}
+ Relation(const std::string &name, const std::string &type): mName(name), mType(type), mPriority(-1) {}
bool operator==(const Relation &other) const {
return mName == other.mName &&
@@ -119,6 +119,7 @@ struct Relation {
mColor == other.mColor &&
mIconName == other.mIconName &&
mParent == other.mParent &&
+ mPriority == other.mPriority &&
mMembers == other.mMembers;
}
diff --git a/src/kolabconversions.h b/src/kolabconversions.h
index daa9164..8e2050c 100644
--- a/src/kolabconversions.h
+++ b/src/kolabconversions.h
@@ -215,7 +215,7 @@ std::string serializeObject <Kolab::Configuration> (const Kolab::Configuration &
if (!relation.parent().empty()) {
n.parent(relation.parent());
}
- if (!relation.priority() != 0) {
+ if (relation.priority() != -1) {
n.priority(fromInt<KolabXSD::Configuration::priority_type>(relation.priority()));
}
BOOST_FOREACH(const std::string &s, relation.members()) {