diff options
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 533dea3..bfe43bf 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -689,6 +689,12 @@ public: | |||
689 | 689 | ||
690 | KAsync::Job<QByteArray> replay(const ApplicationDomain::Folder &folder, Sink::Operation operation, const QByteArray &oldRemoteId, const QList<QByteArray> &changedProperties) Q_DECL_OVERRIDE | 690 | KAsync::Job<QByteArray> replay(const ApplicationDomain::Folder &folder, Sink::Operation operation, const QByteArray &oldRemoteId, const QList<QByteArray> &changedProperties) Q_DECL_OVERRIDE |
691 | { | 691 | { |
692 | if (operation != Sink::Operation_Creation) { | ||
693 | if(oldRemoteId.isEmpty()) { | ||
694 | Q_ASSERT(false); | ||
695 | return KAsync::error<QByteArray>("Tried to replay modification without old remoteId."); | ||
696 | } | ||
697 | } | ||
692 | auto imap = QSharedPointer<ImapServerProxy>::create(mServer, mPort, &mSessionCache); | 698 | auto imap = QSharedPointer<ImapServerProxy>::create(mServer, mPort, &mSessionCache); |
693 | auto login = imap->login(mUser, mPassword); | 699 | auto login = imap->login(mUser, mPassword); |
694 | if (operation == Sink::Operation_Creation) { | 700 | if (operation == Sink::Operation_Creation) { |