Fix wrong JSON type returned

Fix up 78638a15be.
Closes #14041.
This commit is contained in:
Chocobo1
2020-12-24 23:15:36 +08:00
parent 02e85913da
commit 423983e023

View File

@@ -272,7 +272,7 @@ void TorrentsController::infoAction()
if (torrentList.isEmpty()) if (torrentList.isEmpty())
{ {
setResult(QJsonObject {}); setResult(QJsonArray {});
return; return;
} }