Commit 498104db authored by Michal Malý's avatar Michal Malý Committed by Elvis Angelaccio

Remove extraneous "else if" branch

Summary: SMBC_FILE and SMBC_DIR are handled in exactly the same way, there is no need to have a special "else if" branch for both.

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Differential Revision: https://phabricator.kde.org/D6661
parent cc4e461e
......@@ -371,7 +371,8 @@ void SMBSlave::listDir( const QUrl& kurl )
// 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 @@ void SMBSlave::listDir( const QUrl& kurl )
// 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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment