summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-03-13 11:46:34 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-03-13 11:46:34 (GMT)
commitcda50bb7b93a326b274937a508e7361c0666cf2c (patch)
treea59198d64565c5c61203a847e59961261081e371 /lib/kolabaccount.cpp
parentcb4c8282b22e9f7cff3323959307d936ef2d6535 (diff)
downloadkolab-utils-cda50bb7b93a326b274937a508e7361c0666cf2c.tar.gz
Print a debug message instead of an assert.
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 d053853..fdd3e89 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);