1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-10 20:31:47 +00:00

Improve the handling of native directory separators.

This commit is contained in:
sledgehammer999 2012-11-30 01:37:08 +02:00
parent 1809de7f1a
commit 6b7bd55931

View File

@ -73,12 +73,7 @@ using namespace libtorrent;
*/ */
QString fsutils::toDisplayPath(const QString& path) QString fsutils::toDisplayPath(const QString& path)
{ {
#if defined(Q_WS_WIN) || defined(Q_OS_OS2) return QDir::toNativeSeparators(path);
QString ret = path;
return ret.replace("/", "\\");
#else
return path;
#endif
} }
/** /**