mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Improve the handling of native directory separators.
This commit is contained in:
parent
1809de7f1a
commit
6b7bd55931
1 changed files with 1 additions and 6 deletions
|
@ -73,12 +73,7 @@ using namespace libtorrent;
|
|||
*/
|
||||
QString fsutils::toDisplayPath(const QString& path)
|
||||
{
|
||||
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
|
||||
QString ret = path;
|
||||
return ret.replace("/", "\\");
|
||||
#else
|
||||
return path;
|
||||
#endif
|
||||
return QDir::toNativeSeparators(path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue