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

List:       kde-commits
Subject:    kdenonbeta/karchiver
From:       Eric Coquelle <eric.coquelle () gmail ! com>
Date:       2006-09-22 12:49:21
Message-ID: 1158929361.197939.29341.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 587345 by coquelle:

Removed the final "/" that could appear in the AddFiles dialog


 M  +25 -26    caddfilestoarchive.cpp  


--- trunk/kdenonbeta/karchiver/caddfilestoarchive.cpp #587344:587345
@@ -125,33 +125,32 @@
 
 void CAddFilesToArchive::rebuildPath(QListViewItem *l)
 {
-	if(l->depth()!=0)
-	{
-		path="/"+path;
-		path=l->text(0)+path;
-		rebuildPath(l->parent());
-	}
-	else
-	{
-		path="/"+path;
-		int i;
-		i=0;
-
-        for ( QStringList::Iterator f=filelist.begin(); f!=filelist.end(); ++f )
+  if(l->depth()!=0)
+  {
+    path=l->text(0)+path;
+    path="/"+path;
+    rebuildPath(l->parent());
+  }
+  else
+  {
+    int i;
+    i=0;
+  
+    for ( QStringList::Iterator f=filelist.begin(); f!=filelist.end(); ++f )
+    {
+        if(*f==path)
         {
-		    if(*f==path)
-            {
-              filelist.remove(*f);
-              qtarch_LineFichiers->removeParagraph(i);
-              path="";
-              return;
-            }
-		    i++;
-		}
-		filelist.append(path);
-		qtarch_LineFichiers->insertParagraph(path, -1);
-		path="";
-	}
+          filelist.remove(*f);
+          qtarch_LineFichiers->removeParagraph(i);
+          path="";
+          return;
+        }
+        i++;
+    }
+    filelist.append(path);
+    qtarch_LineFichiers->insertParagraph(path, -1);
+    path="";
+  }
 }
 
 QStringList CAddFilesToArchive::getFiles()
[prev in list] [next in list] [prev in thread] [next in thread] 

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