diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2008-01-08 11:33:35 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2008-01-08 11:33:35 +0800 |
commit | e8409a25392daee179f822c82d85a3e68b31f0ca (patch) | |
tree | 5c8bbef3a49ecaea2a3b1b3f5ae604d3f5274812 /mail | |
parent | fe08cfce36250ded5785b6cd1757277e5af3ea66 (diff) | |
download | gsoc2013-evolution-e8409a25392daee179f822c82d85a3e68b31f0ca.tar gsoc2013-evolution-e8409a25392daee179f822c82d85a3e68b31f0ca.tar.gz gsoc2013-evolution-e8409a25392daee179f822c82d85a3e68b31f0ca.tar.bz2 gsoc2013-evolution-e8409a25392daee179f822c82d85a3e68b31f0ca.tar.lz gsoc2013-evolution-e8409a25392daee179f822c82d85a3e68b31f0ca.tar.xz gsoc2013-evolution-e8409a25392daee179f822c82d85a3e68b31f0ca.tar.zst gsoc2013-evolution-e8409a25392daee179f822c82d85a3e68b31f0ca.zip |
Patch from Bharath Acharya <abharath@novell.com>: Fix for bug #474118 (Check for store type and invoke appropriate *_prepare_for_offline functions)
svn path=/trunk/; revision=34778
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-ops.c | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 1ae6c58b6c..96edbd0479 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2008-01-08 Bharath Acharya <abharath@novell.com> + + ** Fix for bug #474118 + + * mail-ops.c: (prepare_offline_exec): Check for the right type of store + and invoke appropriate functions. + 2008-01-07 Milan Crha <mcrha@redhat.com> ** Fix for bug #300336 diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 82fb0af912..894d4d8c2f 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -2321,8 +2321,13 @@ prepare_offline_desc (struct _set_offline_msg *m) static void prepare_offline_exec (struct _set_offline_msg *m) { - camel_disco_store_prepare_for_offline (CAMEL_DISCO_STORE (m->store), + if (CAMEL_IS_DISCO_STORE (m->store)) { + camel_disco_store_prepare_for_offline (CAMEL_DISCO_STORE (m->store), &m->base.ex); + } else if (CAMEL_IS_OFFLINE_STORE (m->store)) { + camel_offline_store_prepare_for_offline (CAMEL_OFFLINE_STORE (m->store), + &m->base.ex); + } } static void |