evolution r35029 - trunk/plugins/exchange-operations



Author: sragavan
Date: Sun Feb 17 20:06:45 2008
New Revision: 35029
URL: http://svn.gnome.org/viewvc/evolution?rev=35029&view=rev

Log:
2008-02-18  Srinivasa Ragavan  <sragavan novell com>

	* exchange-folder-subscription.c: (subscribe_to_folder),
	(create_folder_subscription_dialog): Pushing  a downstream patch from
	OpenSUSE.


Modified:
   trunk/plugins/exchange-operations/ChangeLog
   trunk/plugins/exchange-operations/exchange-folder-subscription.c

Modified: trunk/plugins/exchange-operations/exchange-folder-subscription.c
==============================================================================
--- trunk/plugins/exchange-operations/exchange-folder-subscription.c	(original)
+++ trunk/plugins/exchange-operations/exchange-folder-subscription.c	Sun Feb 17 20:06:45 2008
@@ -240,6 +240,7 @@
 			g_free (folder_name);
 			switch (result) {
 				case EXCHANGE_ACCOUNT_FOLDER_OK:
+					exchange_account_rescan_tree (subscription_info->account);
 					break;
 				case EXCHANGE_ACCOUNT_FOLDER_ALREADY_EXISTS:
 					e_error_run (NULL, ERROR_DOMAIN ":folder-exists-error", NULL);
@@ -296,6 +297,11 @@
 	GladeXML *glade_xml;
 	GtkWidget *dialog, *ok_button;
 	SubscriptionInfo *subscription_info;
+	int mode;
+
+	exchange_account_is_offline (account, &mode);
+	if (mode == OFFLINE_MODE)
+		return FALSE;
 
 	subscription_info = g_new0 (SubscriptionInfo, 1);
 	subscription_info->account = account;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]