mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
[Web UI] Fix an error in Content tab when the torrent doesn't have metadata
Conflicts: src/webui/btjson.cpp
This commit is contained in:
@@ -502,7 +502,7 @@ QByteArray btjson::getFilesForTorrent(const QString& hash)
|
|||||||
try {
|
try {
|
||||||
QTorrentHandle h = QBtSession::instance()->getTorrentHandle(hash);
|
QTorrentHandle h = QBtSession::instance()->getTorrentHandle(hash);
|
||||||
if (!h.has_metadata())
|
if (!h.has_metadata())
|
||||||
return QByteArray();
|
return json::toJson(file_list);
|
||||||
|
|
||||||
const std::vector<int> priorities = h.file_priorities();
|
const std::vector<int> priorities = h.file_priorities();
|
||||||
std::vector<size_type> fp;
|
std::vector<size_type> fp;
|
||||||
|
|||||||
Reference in New Issue
Block a user