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
commit a56e6294c1
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

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