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

View File

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