Browse Source

Always send paths with '/' as file separator

adaptive-webui-19844
Thomas Piccirello 6 years ago
parent
commit
e0037b819a
  1. 2
      src/webui/api/torrentscontroller.cpp

2
src/webui/api/torrentscontroller.cpp

@ -460,7 +460,7 @@ void TorrentsController::filesAction() @@ -460,7 +460,7 @@ void TorrentsController::filesAction()
QString fileName = torrent->filePath(i);
if (fileName.endsWith(QB_EXT, Qt::CaseInsensitive))
fileName.chop(QB_EXT.size());
fileDict[KEY_FILE_NAME] = Utils::Fs::toNativePath(fileName);
fileDict[KEY_FILE_NAME] = Utils::Fs::toUniformPath(fileName);
const BitTorrent::TorrentInfo::PieceRange idx = info.filePieces(i);
fileDict[KEY_FILE_PIECE_RANGE] = QVariantList {idx.first(), idx.last()};

Loading…
Cancel
Save