From 9ea56ea5d41a52d7bde20fd0d2cb74f4c47d7734 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 --- 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 bb678e7c0..e3196a133 100644 --- a/src/webui/btjson.cpp +++ b/src/webui/btjson.cpp @@ -481,7 +481,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash) } if (!torrent->hasMetadata()) - return QByteArray(); + return json::toJson(fileList); const QVector priorities = torrent->filePriorities(); QVector fp = torrent->filesProgress();