evolution/bgo-325960-evo-foldersubscription.diff

25 lines
878 B
Diff
Raw Normal View History

=== modified file 'plugins/exchange-operations/exchange-folder-subscription.c'
--- plugins/exchange-operations/exchange-folder-subscription.c 2007-12-18 20:23:31 +0000
+++ plugins/exchange-operations/exchange-folder-subscription.c 2007-12-18 20:35:58 +0000
@@ -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;