mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Improve the handling of native directory separators.
This commit is contained in:
committed by
Christophe Dumez
parent
2c7186a381
commit
227a1f6532
@@ -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user