Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file_unix.cpp
Show First 20 Lines • Show All 488 Lines • ▼ Show 20 Line(s) | |||||
489 | } | 489 | } | ||
490 | #endif | 490 | #endif | ||
491 | 491 | | |||
492 | 492 | | |||
493 | void FileProtocol::listDir(const QUrl &url) | 493 | void FileProtocol::listDir(const QUrl &url) | ||
494 | { | 494 | { | ||
495 | if (!isLocalFileSameHost(url)) { | 495 | if (!isLocalFileSameHost(url)) { | ||
496 | QUrl redir(url); | 496 | QUrl redir(url); | ||
497 | redir.setScheme(config()->readEntry("DefaultRemoteProtocol", "smb")); | 497 | redir.setScheme(mapConfig().value(QStringLiteral("DefaultRemoteProtocol"), QStringLiteral("smb")).toString()); | ||
498 | redirection(redir); | 498 | redirection(redir); | ||
499 | // qDebug() << "redirecting to " << redir; | 499 | // qDebug() << "redirecting to " << redir; | ||
500 | finished(); | 500 | finished(); | ||
501 | return; | 501 | return; | ||
502 | } | 502 | } | ||
503 | const QString path(url.toLocalFile()); | 503 | const QString path(url.toLocalFile()); | ||
504 | const QByteArray _path(QFile::encodeName(path)); | 504 | const QByteArray _path(QFile::encodeName(path)); | ||
505 | DIR *dp = opendir(_path.data()); | 505 | DIR *dp = opendir(_path.data()); | ||
▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines |