From 474f15f5571bc0d2e64785963703852f274e74df Mon Sep 17 00:00:00 2001 From: Bharath Acharya Date: Sun, 20 Jul 2008 17:15:08 +0000 Subject: ** Fix for bug #542149 2008-07-11 Bharath Acharya ** Fix for bug #542149 * exchange-folder-subscription.c: (subscribe_to_folder): Display an error message to restart if user tries to subscribe to other's mailbox. * org-gnome-exchange-operations.error.xml: Added the corresponding error message. svn path=/trunk/; revision=35779 --- plugins/exchange-operations/exchange-folder-subscription.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/exchange-operations/exchange-folder-subscription.c') diff --git a/plugins/exchange-operations/exchange-folder-subscription.c b/plugins/exchange-operations/exchange-folder-subscription.c index 021a06434b..9706dd29ab 100644 --- a/plugins/exchange-operations/exchange-folder-subscription.c +++ b/plugins/exchange-operations/exchange-folder-subscription.c @@ -237,9 +237,12 @@ subscribe_to_folder (GtkWidget *dialog, gint response, gpointer data) user_email_address, folder_name, &folder); g_free (folder_name); + gtk_widget_hide (dialog); switch (result) { case EXCHANGE_ACCOUNT_FOLDER_OK: exchange_account_rescan_tree (subscription_info->account); + if (!g_ascii_strcasecmp (e_folder_get_type_string (folder), "mail")) + e_error_run (NULL, ERROR_DOMAIN ":folder-restart-evo", NULL); break; case EXCHANGE_ACCOUNT_FOLDER_ALREADY_EXISTS: e_error_run (NULL, ERROR_DOMAIN ":folder-exists-error", NULL); -- cgit v1.2.3