[evolution-patches] Exchange: patch for bug #274262
- From: shakti <shprasad novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Exchange: patch for bug #274262
- Date: Thu, 11 Aug 2005 18:45:01 +0530
Hi,
I have attached a patch for bug #274262. Please review it.
Thanks,
Shakti
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.369
diff -u -p -r1.369 ChangeLog
--- ChangeLog 9 Aug 2005 08:15:40 -0000 1.369
+++ ChangeLog 11 Aug 2005 13:15:17 -0000
@@ -1,3 +1,12 @@
+2005-08-11 Shakti Sen <shprasad novell com>
+
+ * addressbook/e-book-backend-exchange.c
+ (e_book_backend_exchange_start_book_view): Takes care of searching
+ even the user starts evolution in offline mode and switch back to
+ online mode.
+
+ Fixes bug #274262.
+
2005-08-08 Sarfraaz Ahmed <asarfraaz novell com>
* configure.in : Bumped the version to 2.3.7
Index: addressbook/e-book-backend-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/addressbook/e-book-backend-exchange.c,v
retrieving revision 1.32
diff -u -p -r1.32 e-book-backend-exchange.c
--- addressbook/e-book-backend-exchange.c 25 Jul 2005 11:03:16 -0000 1.32
+++ addressbook/e-book-backend-exchange.c 11 Aug 2005 13:15:18 -0000
@@ -1874,6 +1874,23 @@ e_book_backend_exchange_start_book_view
case GNOME_Evolution_Addressbook_MODE_REMOTE:
+ /* Check if it is connected or not because there is always
+ * a chance of starting evolution in offline mode and then
+ * switch back to online mode to do some operations which
+ * requires evolution in online mode.
+ FIXME: We need to fix this problem in all other operations.
+ */
+ if (!bepriv->account)
+ bepriv->account = exchange_component_get_account_for_uri (global_exchange_component, bepriv->exchange_uri);
+
+ if (!bepriv->account)
+ return;
+
+ bepriv->folder = exchange_account_get_folder (bepriv->account, bepriv->exchange_uri);
+
+ if (!bepriv->folder)
+ return;
+
/* execute the query */
rn = e_book_backend_exchange_build_restriction (query,
bepriv->base_rn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]