[evolution-kolab/ek-wip-porting] KolabMailHandle: fixed folder context check
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab/ek-wip-porting] KolabMailHandle: fixed folder context check
- Date: Thu, 8 Dec 2011 14:19:13 +0000 (UTC)
commit bac3fc2c1d84ead4c59a11daebf02cbfc10d8710
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Wed Dec 7 18:15:02 2011 +0100
KolabMailHandle: fixed folder context check
* in kolab_mail_handle_new_from_kconvmail(), the folder
context as mapped from the folder type was checked
against KOLAB_FOLDER_TYPE_* instead of the proper
KOLAB_FOLDER_CONTEXT_*. fixed.
src/libekolab/kolab-mail-handle.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libekolab/kolab-mail-handle.c b/src/libekolab/kolab-mail-handle.c
index 863b2e0..709012f 100644
--- a/src/libekolab/kolab-mail-handle.c
+++ b/src/libekolab/kolab-mail-handle.c
@@ -248,8 +248,8 @@ kolab_mail_handle_new_from_kconvmail (Kolab_conv_mail *kconvmail,
g_assert (foldername != NULL);
context = kolab_util_folder_type_map_to_context_id (folder_type);
- g_assert ((context >= KOLAB_FOLDER_TYPE_EVENT) &&
- (context < KOLAB_FOLDER_LAST_TYPE));
+ g_assert ((context >= KOLAB_FOLDER_CONTEXT_EMAIL) &&
+ (context < KOLAB_FOLDER_LAST_CONTEXT));
/* create handle object */
self = kolab_mail_handle_new_shallow (uid, foldername);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]