mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kioslave: do not add trailing slash if there is one from file slave when listing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7e1088407e
commit
089c0ac111
1 changed files with 4 additions and 1 deletions
|
@ -359,7 +359,10 @@ void FileProtocol::listDir(const KUrl &url)
|
|||
entry.clear();
|
||||
|
||||
const QString filename = QFile::decodeName(ep->d_name);
|
||||
QString filepath = path + QDir::separator();
|
||||
QString filepath = path;
|
||||
if (!filepath.endsWith(QDir::separator())) {
|
||||
filepath += QDir::separator();
|
||||
}
|
||||
if (filename != s_dot) {
|
||||
filepath += filename;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue