[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kget
From:       Felix Berger <bflat1 () gmx ! net>
Date:       2005-02-17 11:51:43
Message-ID: 20050217115143.C6D331D2FC () office ! kde ! org
[Download RAW message or body]

CVS commit by fberger: 

Allow deletion of already finished transfers. There could still be race
conditions and the option mark partial isn't honored yet.

BUG:96565


  M +6 -6      transfer.cpp   1.67


--- kdenetwork/kget/transfer.cpp  #1.66:1.67
@@ -456,14 +456,14 @@ void Transfer::slotRequestRemove()
                 dlgIndividual->close();
 
+    KURL file = dest;
     if ( status != ST_FINISHED )
     {
         // delete the partly downloaded file, if any
-        KURL file = dest;
         file.setFileName( dest.fileName() + ".part" ); // ### get it from the job?
+    }
         if ( KIO::NetAccess::exists( file, false, view ) ) // don't pollute user with warnings
         {
             SafeDelete::deleteFile( file ); // ### messagebox on failure?
         }
-    }
     if (status == ST_RUNNING)
         m_pSlave->Op(Slave::REMOVE);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic