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);