mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-26 16:15:10 -07: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:
parent
266c96f03b
commit
4c079ede83
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue