Bgo #557613 - check for right enum values in cancel operation.
authorChenthill Palanisamy <pchenthill@novell.com>
Thu, 1 Oct 2009 10:55:06 +0000 (16:25 +0530)
committerChenthill Palanisamy <pchenthill@novell.com>
Thu, 1 Oct 2009 10:55:06 +0000 (16:25 +0530)
addressbook/libedata-book/e-data-book.c

index 920457e..81fd46f 100644 (file)
@@ -634,7 +634,7 @@ e_data_book_respond_get_changes (EDataBook *book, guint32 opid, EDataBookStatus
 static gboolean
 impl_AddressBook_Book_cancelOperation(EDataBook *book, GError **error)
 {
-       if (!e_book_backend_cancel_operation (e_data_book_get_backend (book), book)) {
+       if (e_book_backend_cancel_operation (e_data_book_get_backend (book), book) != GNOME_Evolution_Addressbook_Success) {
                g_set_error (error, E_DATA_BOOK_ERROR, E_DATA_BOOK_STATUS_COULD_NOT_CANCEL, "Failed to cancel operation");
                return FALSE;
        }