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

List:       kde-commits
Subject:    branches/KDE/4.2/kdelibs/kio/kio
From:       David Faure <faure () kde ! org>
Date:       2009-02-18 15:49:23
Message-ID: 1234972163.696693.7068.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 927932 by dfaure:

Show 'l' for symlinks to directories, not 'd' (the order of the tests was wrong).
BUG: 162544


 M  +3 -3      kfileitem.cpp  


--- branches/KDE/4.2/kdelibs/kio/kio/kfileitem.cpp #927931:927932
@@ -418,10 +418,10 @@
 
     // Include the type in the first char like kde3 did; people are more used to seeing it,
     // even though it's not really part of the permissions per se.
-    if (m_fileMode != KFileItem::Unknown && S_ISDIR(m_fileMode))
+    if (m_bLink)
+        buffer[0] = 'l';
+    else if (m_fileMode != KFileItem::Unknown && S_ISDIR(m_fileMode))
         buffer[0] = 'd';
-    else if (m_bLink)
-        buffer[0] = 'l';
     else
         buffer[0] = '-';
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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