From e0037b819ae0b60d00cedf2762e6514b4913d47e Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Mon, 3 Jun 2019 17:22:35 -0700 Subject: [PATCH] Always send paths with '/' as file separator --- src/webui/api/torrentscontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 0a965bf28..d5092c6bb 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -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()};