browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp
changeset 17 c8a366e56285
parent 16 a359256acfc6
child 36 0ed94ceaa377
--- a/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp	Thu Aug 27 07:44:59 2009 +0300
+++ b/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp	Thu Sep 24 12:53:48 2009 +0300
@@ -406,9 +406,16 @@
         }
     else
         {
-        iDialog = NULL;
-        // Reset owner pointer to this object.
-        if ( iReferer )
+            if( !iDownloadsList.GetDownloadHide() )
+                {
+                delete iDialog;
+                }
+           
+            iDownloadsList.SetDownloadListHide( EFalse );
+      
+            iDialog = NULL;
+            // Reset owner pointer to this object.
+       	    if ( iReferer )
             {
             *iReferer = 0;
             CLOG_WRITE(" referer set was to 0");
@@ -2544,6 +2551,14 @@
         }
     }
 
+// -----------------------------------------------------------------------------
+// CDownloadMgrUiDownloadsList::SetDownloadListHide
+// -----------------------------------------------------------------------------
+//
+void CDownloadMgrUiDownloadsList::SetDownloadListHide( TBool aHide )
+    {
+    iDownloadListHide = aHide;
+    }
 #ifdef __WINS__
 #include <commdb.h>
 #include <AknLists.h>