mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
[Web UI] Fix an error in Content tab when the torrent doesn't have metadata
This commit is contained in:
@@ -481,7 +481,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!torrent->hasMetadata())
|
if (!torrent->hasMetadata())
|
||||||
return QByteArray();
|
return json::toJson(fileList);
|
||||||
|
|
||||||
const QVector<int> priorities = torrent->filePriorities();
|
const QVector<int> priorities = torrent->filePriorities();
|
||||||
QVector<qreal> fp = torrent->filesProgress();
|
QVector<qreal> fp = torrent->filesProgress();
|
||||||
|
|||||||
Reference in New Issue
Block a user