videocollection/mpxmyvideoscollection/src/vcxmyvideosasyncfileoperations.cpp
branchRCL_3
changeset 70 375929f879c2
parent 60 f87e8c4ac026
--- a/videocollection/mpxmyvideoscollection/src/vcxmyvideosasyncfileoperations.cpp	Wed Sep 15 12:15:24 2010 +0300
+++ b/videocollection/mpxmyvideoscollection/src/vcxmyvideosasyncfileoperations.cpp	Wed Oct 13 14:34:36 2010 +0300
@@ -602,20 +602,9 @@
         if ( iIsMoveOperation )
             {
             MPX_DEBUG2("CVcxMyVideosAsyncFileOperations:: move operation failed %d", aErr );
-
-            if ( ! BaflUtils::FileExists( iCollection.iFs, iSourcePath ) )
-                {
-                MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: mmc removed, deleting the old media" );
-                iCollection.iMyVideosMdsDb->RemoveVideo( iMediaForMoveOp->ValueTObjectL<TMPXItemId>(
-                        KMPXMediaGeneralId ).iId1 );
-                }
-            else
-                {
-                MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: setting media path back in MDS" );
-                iMediaForMoveOp->SetTextValueL( KMPXMediaGeneralUri, iSourcePath );
-                iCollection.SetVideoL( *iMediaForMoveOp );
-                }
-
+            MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: setting media path back in MDS" );
+            iMediaForMoveOp->SetTextValueL( KMPXMediaGeneralUri, iSourcePath );
+            iCollection.SetVideoL( *iMediaForMoveOp );
             MPX_DEBUG1("CVcxMyVideosAsyncFileOperations:: deleting target file");
             TInt delErr = BaflUtils::DeleteFile( iCollection.iFs, iTargetPath );
             if ( delErr != KErrNone )