summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-10 06:30:19 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-10 06:30:19 (GMT)
commit1d99fef42ff4b0c6e4e17fee3af9db456dd30b8a (patch)
tree3f4b9dd565877d101cfba9c8f472dedff8981abf
parent5f8d4e488ddd3479552868cf4e6428ccc8550979 (diff)
Fix deserialize attribute :) It's good to execute autotest :) It was
totally broken
-rw-r--r--src/sentbehaviourattribute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentbehaviourattribute.cpp b/src/sentbehaviourattribute.cpp
index b92262c..0c2bd4b 100644
--- a/src/sentbehaviourattribute.cpp
+++ b/src/sentbehaviourattribute.cpp
@@ -93,7 +93,7 @@ void SentBehaviourAttribute::deserialize(const QByteArray &data)
d->mBehaviour = MoveToDefaultSentCollection;
} else if (in[0].startsWith(QByteArray("moveTo"))) {
d->mBehaviour = MoveToCollection;
- d->mMoveToCollection = Akonadi::Collection(data.mid(6).toLongLong());
+ d->mMoveToCollection = Akonadi::Collection(in[0].mid(6).toLongLong());
// NOTE: 6 is the strlen of "moveTo".
} else {
Q_ASSERT(false);