diff -r b0b89ca206b5 -r 2c62ef3caffd emailuis/nmframeworkadapter/src/nmfwamessagepartfetchingoperation.cpp --- a/emailuis/nmframeworkadapter/src/nmfwamessagepartfetchingoperation.cpp Fri May 14 04:17:40 2010 +0300 +++ b/emailuis/nmframeworkadapter/src/nmfwamessagepartfetchingoperation.cpp Fri May 14 04:41:45 2010 +0300 @@ -119,9 +119,20 @@ } /*! + * Complete the operation + */ +void NmFwaMessagePartFetchingOperation::doCompleteOperation() +{ + mRequestId = NmNotFoundError; +} +/*! + Cancels the async operation. \sa NmOperation */ void NmFwaMessagePartFetchingOperation::doCancelOperation() { - TRAP_IGNORE(mMailClient.CancelL(mRequestId)); + if (mRequestId >= 0) { + TRAP_IGNORE(mMailClient.CancelL(mRequestId)); + mRequestId = NmNotFoundError; + } }