summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-03-13 11:50:29 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-03-13 11:50:29 (GMT)
commit549fa26a274f62e6c63241e408428a536aa457d0 (patch)
tree1cb0c12917edd01ab305ca26e3308a1f9015f796 /lib/kolabaccount.cpp
parentc61cbb98d67229c35d6d6736b6db3bb2b340d23c (diff)
parentcda50bb7b93a326b274937a508e7361c0666cf2c (diff)
downloadkolab-utils-549fa26a274f62e6c63241e408428a536aa457d0.tar.gz
Merge branch 'master' of ssh://git.kolab.org/git/kolab-utils
Diffstat (limited to 'lib/kolabaccount.cpp')
-rw-r--r--lib/kolabaccount.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index 2834fb5..312af42 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -163,7 +163,11 @@ void KolabAccount::appendObject(Object obj, const QString& folder)
Debug() << "append object in folder: " << folder;
return;
}
- Q_ASSERT(mFolders.contains(folder));
+ if (!mFolders.contains(folder)) {
+ Error() << "failed to find target folder: " << folder;
+ qDebug() << mFolders;
+ return;
+ }
KMime::Message::Ptr message = writeObject(obj);