Browse Source

[Web UI] Fix an error in Content tab when the torrent doesn't have metadata

adaptive-webui-19844
ngosang 9 years ago
parent
commit
9ea56ea5d4
  1. 2
      src/webui/btjson.cpp

2
src/webui/btjson.cpp

@ -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();

Loading…
Cancel
Save