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

List:       kde-commits
Subject:    branches/KDE/3.5/kdeutils/ark
From:       Charis Kouzinopoulos <haris () mpa ! gr>
Date:       2006-04-25 14:20:54
Message-ID: 1145974854.903557.29022.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 533702 by charis:

Don't crash if the temporary folder is removed during the process
CCBUG: 126215



 M  +4 -1      compressedfile.cpp  


--- branches/KDE/3.5/kdeutils/ark/compressedfile.cpp #533701:533702
@@ -167,8 +167,11 @@
   target.setPath( m_tmpfile );
 
   KIO::NetAccess::copy( src, target, m_gui );
-  kdDebug(1601) << "Temp file name is " << m_tmpfile << endl;
+  kdDebug(1601) << "Temp file name is " << target << endl;
 
+  if ( !KIO::NetAccess::exists( target, true, NULL ) )
+    return;
+
   KProcess *kp = m_currentProcess = new KProcess;
   kp->clearArguments();
   *kp << m_unarchiver_program << "-f" ;
[prev in list] [next in list] [prev in thread] [next in thread] 

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