Commit 1d99fef4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix deserialize attribute :) It's good to execute autotest :) It was

totally broken
parent 5f8d4e48
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment