From 423983e0232d96a92dfc7a1f93ec44b2aad698b3 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 24 Dec 2020 23:15:36 +0800 Subject: [PATCH] Fix wrong JSON type returned Fix up 78638a15be33d2f8e336117e23ca496841221d42. Closes #14041. --- src/webui/api/torrentscontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 2d18b1753..4144b5f3e 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -272,7 +272,7 @@ void TorrentsController::infoAction() if (torrentList.isEmpty()) { - setResult(QJsonObject {}); + setResult(QJsonArray {}); return; }