diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index ef4c518a9..1e26ca1ce 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -283,7 +283,7 @@ namespace Q_ASSERT(torrent->hasMetadata()); if (!torrent->hasMetadata()) [[unlikely]] return {}; - + if (fileIndexes.isEmpty()) { const int filesCount = torrent->filesCount();