From 4c079ede8364aca83e5af2828215e7f9155e58ff Mon Sep 17 00:00:00 2001 From: ngosang Date: Thu, 9 Jul 2015 18:11:04 +0200 Subject: [PATCH] [Web UI] Fix an error in Content tab when the torrent doesn't have metadata Conflicts: src/webui/btjson.cpp --- 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 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;