diff --git a/smb/kio_smb_browse.cpp b/smb/kio_smb_browse.cpp --- a/smb/kio_smb_browse.cpp +++ b/smb/kio_smb_browse.cpp @@ -371,7 +371,8 @@ // fprintf(stderr,"----------- hide: -%s-\n",dirp->name); // do nothing and hide the hidden shares } - else if(dirp->smbc_type == SMBC_FILE) + else if (dirp->smbc_type == SMBC_FILE || + dirp->smbc_type == SMBC_DIR) { // Set stat information m_current_url.addPath(dirpName); @@ -381,15 +382,6 @@ // Call base class to list entry listEntry(udsentry); } - else if(dirp->smbc_type == SMBC_DIR) - { - m_current_url.addPath(dirpName); - browse_stat_path(m_current_url, udsentry); - m_current_url.cd(".."); - - // Call base class to list entry - listEntry(udsentry); - } else if(dirp->smbc_type == SMBC_SERVER || dirp->smbc_type == SMBC_FILE_SHARE) {