diff --git a/src/webui/btjson.cpp b/src/webui/btjson.cpp index b19959a31..a5754a7f4 100644 --- a/src/webui/btjson.cpp +++ b/src/webui/btjson.cpp @@ -502,7 +502,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash) try { QTorrentHandle h = QBtSession::instance()->getTorrentHandle(hash); if (!h.has_metadata()) - return QByteArray(); + return json::toJson(file_list); const std::vector priorities = h.file_priorities(); std::vector fp;