From 619bc50ccd1d7c1d994abb70a7f0db413f3285e0 Mon Sep 17 00:00:00 2001 From: Sarfraaz Ahmed Date: Mon, 11 Jul 2005 12:26:24 +0000 Subject: Check that the result is not a success and only then print the error Call 2005-07-11 Sarfraaz Ahmed * exchange-operations.c (exchange_operations_report_error) : Check that the result is not a success and only then print the error * exchange-account-setup.c (btn_chpass_clicked) : Call the error reporting routine only if there is a failure. * exchange-config-listener.c (account_added) : Similar svn path=/trunk/; revision=29718 --- plugins/exchange-operations/exchange-account-setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/exchange-operations/exchange-account-setup.c') diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c index 1d32b096c8..f49a9f0d63 100644 --- a/plugins/exchange-operations/exchange-account-setup.c +++ b/plugins/exchange-operations/exchange-account-setup.c @@ -129,7 +129,8 @@ btn_chpass_clicked (GtkButton *button, gpointer data) new_password = exchange_get_new_password (old_password, TRUE); g_print ("Current password is \"%s\"\n", old_password); result = exchange_account_set_password (account, old_password, new_password); - exchange_operations_report_error (account, result); + if (result != EXCHANGE_ACCOUNT_CONNECT_SUCCESS) + exchange_operations_report_error (account, result); g_free (old_password); g_free (new_password); -- cgit v1.2.3