summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-11-07 10:45:07 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-11-07 10:45:07 (GMT)
commit3f58621127785ad8a89b94f2739495e35dade5e5 (patch)
tree030cdc577d7539e8071bbfc6ec28756e6d25bdb4
parent1f34e48610033a307856587b10728cc18c98de86 (diff)
Fix assert in SentBehaviourAttribute::seralize()
-rw-r--r--src/sentbehaviourattribute.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sentbehaviourattribute.cpp b/src/sentbehaviourattribute.cpp
index fb1f594..8cab4ad 100644
--- a/src/sentbehaviourattribute.cpp
+++ b/src/sentbehaviourattribute.cpp
@@ -69,14 +69,16 @@ QByteArray SentBehaviourAttribute::serialized() const
case MoveToDefaultSentCollection:
out = "moveToDefault";
break;
+ default:
+ Q_ASSERT(false);
+ return QByteArray();
}
if (d->mSilent) {
out += ",silent";
}
- Q_ASSERT(false);
- return QByteArray();
+ return out;
}
void SentBehaviourAttribute::deserialize(const QByteArray &data)