From 4db757839ca023a0c5f52c0626b6afcecb8c933e Mon Sep 17 00:00:00 2001 From: Gabriele Date: Wed, 4 Mar 2015 20:00:00 +0100 Subject: [PATCH] WebUI: Return full path to files It's otherwise impossible to know the structure of a torrent. --- src/webui/btjson.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/btjson.cpp b/src/webui/btjson.cpp index 978e01e72..34bd0f986 100644 --- a/src/webui/btjson.cpp +++ b/src/webui/btjson.cpp @@ -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);