browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp
--- a/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp Thu Jul 15 19:53:20 2010 +0300
+++ b/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp Thu Aug 19 10:58:56 2010 +0300
@@ -1867,8 +1867,12 @@
TFindFile file(fs);
TPtrC ptr(KNullDesC);
TInt found = file.FindByPath(fileNamePtr1,&ptr); //when second parameter to the API is Null then the it searches for the file in the Dir specified in the first parameter
+ TBool isFileOpen(EFalse);
+ TInt fileopenstatus = fs.IsFileOpen(fileNamePtr1,isFileOpen);
CleanupStack::PopAndDestroy(&fs);
CleanupStack::PopAndDestroy(fileName1);
+ if(fileopenstatus ==KErrNone && isFileOpen)
+ User::Leave(KErrInUse);
// Delete in DMgr
TBool deleted = iUiUtils->DeleteWithUserConfirmL( currDownload );
if ( deleted )