mtpdataproviders/mtppictbridgedp/src/cmtppictbridgedpsendobjectinfo.cpp
branchRCL_3
changeset 18 453dfc402455
parent 15 f85613f12947
--- a/mtpdataproviders/mtppictbridgedp/src/cmtppictbridgedpsendobjectinfo.cpp	Thu Jul 15 19:35:12 2010 +0300
+++ b/mtpdataproviders/mtppictbridgedp/src/cmtppictbridgedpsendobjectinfo.cpp	Thu Aug 19 10:44:03 2010 +0300
@@ -659,7 +659,16 @@
         //with folder creation.
 
 
-        iFramework.ObjectMgr().CommitReservedObjectHandleL(*iReceivedObjectP);
+        TRAPD(err, iFramework.ObjectMgr().CommitReservedObjectHandleL(*iReceivedObjectP));
+        __FLOG_VA((_L8(" Entry error %d"),err));        
+        if( KErrAlreadyExists == err )
+            {
+            iReceivedObjectP->SetUint(CMTPObjectMetaData::EHandle, iFramework.ObjectMgr().HandleL(iFullPath));
+            }
+        else 
+            {
+            User::LeaveIfError(err);
+            }
         SendResponseL(EMTPRespCodeOK);
         }
     __FLOG(_L8("<< CMTPPictGetObjectPropDesc::DoHandleSendObjectCompleteL"));