Browse Source

Improve the handling of native directory separators.

adaptive-webui-19844
sledgehammer999 12 years ago
parent
commit
6b7bd55931
  1. 7
      src/fs_utils.cpp

7
src/fs_utils.cpp

@ -73,12 +73,7 @@ using namespace libtorrent; @@ -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…
Cancel
Save