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