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
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

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