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

List:       kde-commits
Subject:    kdeutils/ark
From:       Waldo Bastian <bastian () kde ! org>
Date:       2005-01-28 11:41:11
Message-ID: 20050128114111.D0DDD1D01F () office ! kde ! org
[Download RAW message or body]

CVS commit by waba: 

Delete file before viewing so that you can view a file for a second
time without error message.


  M +5 -0      arkwidget.cpp   1.96


--- kdeutils/ark/arkwidget.cpp  #1.95:1.96
@@ -1524,4 +1524,9 @@ ArkWidget::prepareViewFiles( const QStri
     destTmpDirectory = tmpDir();
 
+    // Make sure to delete previous file already there...
+    for(QStringList::ConstIterator it = fileList.begin();
+        it != fileList.end(); ++it)
+        QFile::remove(destTmpDirectory + *it);
+
     QStringList * list = new QStringList( fileList );
     arch->unarchFile( list, destTmpDirectory, true);


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

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