mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 21:51:25 -07:00
[Web UI] Fix an error in Content tab when the torrent doesn't have metadata
This commit is contained in:
parent
647140c7c7
commit
9ea56ea5d4
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash)
|
|||
}
|
||||
|
||||
if (!torrent->hasMetadata())
|
||||
return QByteArray();
|
||||
return json::toJson(fileList);
|
||||
|
||||
const QVector<int> priorities = torrent->filePriorities();
|
||||
QVector<qreal> fp = torrent->filesProgress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue