diff options
author | Bharath Acharya <abharath@novell.com> | 2008-07-21 01:15:08 +0800 |
---|---|---|
committer | Bharath Acharya <abharath@src.gnome.org> | 2008-07-21 01:15:08 +0800 |
commit | 474f15f5571bc0d2e64785963703852f274e74df (patch) | |
tree | 175c9053e716e53e492ed3b513be77df08e75e94 /plugins/exchange-operations/exchange-folder-subscription.c | |
parent | 9e2412ce340e7e39a1fe6532151afd4fdbe8bb37 (diff) | |
download | gsoc2013-evolution-474f15f5571bc0d2e64785963703852f274e74df.tar gsoc2013-evolution-474f15f5571bc0d2e64785963703852f274e74df.tar.gz gsoc2013-evolution-474f15f5571bc0d2e64785963703852f274e74df.tar.bz2 gsoc2013-evolution-474f15f5571bc0d2e64785963703852f274e74df.tar.lz gsoc2013-evolution-474f15f5571bc0d2e64785963703852f274e74df.tar.xz gsoc2013-evolution-474f15f5571bc0d2e64785963703852f274e74df.tar.zst gsoc2013-evolution-474f15f5571bc0d2e64785963703852f274e74df.zip |
** Fix for bug #542149
2008-07-11 Bharath Acharya <abharath@novell.com>
** 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
Diffstat (limited to 'plugins/exchange-operations/exchange-folder-subscription.c')
-rw-r--r-- | plugins/exchange-operations/exchange-folder-subscription.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |