mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 19:57:45 +03:00
WebUI: Return full path to files
It's otherwise impossible to know the structure of a torrent.
This commit is contained in:
parent
19b9a84576
commit
4db757839c
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash)
|
|||
h.file_progress(fp);
|
||||
for (int i = 0; i < h.num_files(); ++i) {
|
||||
QVariantMap file_dict;
|
||||
QString fileName = h.filename_at(i);
|
||||
QString fileName = h.filepath_at(i);
|
||||
if (fileName.endsWith(".!qB", Qt::CaseInsensitive))
|
||||
fileName.chop(4);
|
||||
file_dict[KEY_FILE_NAME] = fsutils::toNativePath(fileName);
|
||||
|
|
Loading…
Reference in a new issue