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

List:       kde-commits
Subject:    kdeaddons/noatun-plugins/hayes
From:       Carsten Pfeiffer <carpdjih () mailbox ! tu-berlin ! de>
Date:       2003-06-19 15:42:03
[Download RAW message or body]

CVS commit by pfeiffer: 

don't pad directories' keys with 0s, I don't think this is necessary


  M +18 -15    branch.cpp   1.51


--- kdeaddons/noatun-plugins/hayes/branch.cpp  #1.50:1.51
@@ -556,5 +556,7 @@ QString Hayes::FileTreeViewItem::key(int
         }
 
-        // pad numbers for some user-friendly sorting
+        // pad numbers for some user-friendly sorting -- not necessary for dirs
+        if (!isDir())
+        {
         int location = t.length();
         do
@@ -574,4 +576,5 @@ QString Hayes::FileTreeViewItem::key(int
                 t = *d->initialNumbersRE.capturedTexts().at(2);
                 if(!numberPart.isEmpty()) t.prepend(numberPart.rightJustify(500, '0'));
+                }
         }
 


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

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