Fix wrong JSON type returned

Fix up 78638a15be.
Closes #14041.
This commit is contained in:
Chocobo1
2020-12-24 23:15:36 +08:00
committed by sledgehammer999
parent 77909e0093
commit a56e6294c1

View File

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