Merge pull request #14042 from Chocobo1/array

Fix wrong JSON type returned
This commit is contained in:
Mike Tzou 2020-12-25 17:55:28 +08:00 committed by GitHub
commit ae48e49cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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