mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Always send paths with '/' as file separator
This commit is contained in:
parent
93c8be5b5d
commit
e0037b819a
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ void TorrentsController::filesAction()
|
||||||
QString fileName = torrent->filePath(i);
|
QString fileName = torrent->filePath(i);
|
||||||
if (fileName.endsWith(QB_EXT, Qt::CaseInsensitive))
|
if (fileName.endsWith(QB_EXT, Qt::CaseInsensitive))
|
||||||
fileName.chop(QB_EXT.size());
|
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);
|
const BitTorrent::TorrentInfo::PieceRange idx = info.filePieces(i);
|
||||||
fileDict[KEY_FILE_PIECE_RANGE] = QVariantList {idx.first(), idx.last()};
|
fileDict[KEY_FILE_PIECE_RANGE] = QVariantList {idx.first(), idx.last()};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue