summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 0b88a35..7ca3fff 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -593,33 +593,33 @@ void OpieFtp::populateLocalView()
593{ 593{
594 Local_View->clear(); 594 Local_View->clear();
595 currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); 595 currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst);
596 currentDir.setMatchAllDirs(TRUE); 596 currentDir.setMatchAllDirs(TRUE);
597 currentDir.setNameFilter(filterStr); 597 currentDir.setNameFilter(filterStr);
598 QString fileL, fileS, fileDate; 598 QString fileL, fileS, fileDate;
599 bool isDir=FALSE; 599 bool isDir=FALSE;
600 const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); 600 const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/);
601 QFileInfoListIterator it(*list); 601 QFileInfoListIterator it(*list);
602 QFileInfo *fi; 602 QFileInfo *fi;
603 while ( (fi=it.current()) ) { 603 while ( (fi=it.current()) ) {
604 if (fi->isSymLink() ){ 604 if (fi->isSymLink() ){
605 QString symLink=fi->readLink(); 605 QString symLink=fi->readLink();
606// qDebug("Symlink detected "+symLink); 606// qDebug("Symlink detected "+symLink);
607 QFileInfo sym( symLink); 607 QFileInfo sym( symLink);
608 fileS.sprintf( "%10li", sym.size() ); 608 fileS.sprintf( "%10li", sym.size() );
609 fileL.sprintf( "%s -> %s", sym.fileName().data(),sym.absFilePath().data() ); 609 fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() );
610 fileDate = sym.lastModified().toString(); 610 fileDate = sym.lastModified().toString();
611 } else { 611 } else {
612// qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); 612// qDebug("Not a dir: "+currentDir.canonicalPath()+fileL);
613 fileS.sprintf( "%10li", fi->size() ); 613 fileS.sprintf( "%10li", fi->size() );
614 fileL.sprintf( "%s",fi->fileName().data() ); 614 fileL.sprintf( "%s",fi->fileName().data() );
615 fileDate= fi->lastModified().toString(); 615 fileDate= fi->lastModified().toString();
616 if( QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+fileL)).exists() ) { 616 if( QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+fileL)).exists() ) {
617 fileL+="/"; 617 fileL+="/";
618 isDir=TRUE; 618 isDir=TRUE;
619// qDebug( fileL); 619// qDebug( fileL);
620 } 620 }
621 } 621 }
622 if(fileL !="./" && fi->exists()) { 622 if(fileL !="./" && fi->exists()) {
623 item= new QListViewItem( Local_View,fileL, fileDate, fileS ); 623 item= new QListViewItem( Local_View,fileL, fileDate, fileS );
624 QPixmap pm; 624 QPixmap pm;
625 625