[evolution-ews] Revert extra parts of patch for bug #665986
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Revert extra parts of patch for bug #665986
- Date: Thu, 26 Jul 2012 13:38:37 +0000 (UTC)
commit 98dbe0a974a8bdefe927fa2c07cdfd6a6a6ec463
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 26 15:37:49 2012 +0200
Revert extra parts of patch for bug #665986
It caused false errors on message send.
src/server/e-ews-connection.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index c3d5898..9bc7922 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -3651,14 +3651,9 @@ e_ews_connection_update_items_finish (EEwsConnection *cnc,
if (g_simple_async_result_propagate_error (simple, error))
return FALSE;
- if (ids) {
- if (!async_data->items) {
- g_set_error_literal (error, EWS_CONNECTION_ERROR, EWS_CONNECTION_ERROR_ITEMNOTFOUND, _("No items found"));
- return FALSE;
- }
-
+ if (ids)
*ids = async_data->items;
- } else {
+ else {
while (async_data->items) {
g_object_unref (async_data->items->data);
async_data->items = g_slist_remove (async_data->items,
@@ -3785,12 +3780,6 @@ e_ews_connection_create_items_finish (EEwsConnection *cnc,
if (g_simple_async_result_propagate_error (simple, error))
return FALSE;
-
- if (!async_data->items) {
- g_set_error_literal (error, EWS_CONNECTION_ERROR, EWS_CONNECTION_ERROR_ITEMNOTFOUND, _("No items found"));
- return FALSE;
- }
-
*ids = async_data->items;
return TRUE;
@@ -4804,11 +4793,6 @@ e_ews_connection_move_items_finish (EEwsConnection *cnc,
if (g_simple_async_result_propagate_error (simple, error))
return FALSE;
- if (!async_data->items) {
- g_set_error_literal (error, EWS_CONNECTION_ERROR, EWS_CONNECTION_ERROR_ITEMNOTFOUND, _("No items found"));
- return FALSE;
- }
-
*items = async_data->items;
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]