mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Fix Coverity Scan cid 143911.
`filesCount()` could return a negative value.
This commit is contained in:
committed by
sledgehammer999
parent
9c28a48f2e
commit
f2dd050ade
@@ -285,7 +285,7 @@ void TorrentContentModel::clear()
|
||||
void TorrentContentModel::setupModelData(const BitTorrent::TorrentInfo &info)
|
||||
{
|
||||
qDebug("setup model data called");
|
||||
if (info.filesCount() == 0)
|
||||
if (info.filesCount() <= 0)
|
||||
return;
|
||||
|
||||
emit layoutAboutToBeChanged();
|
||||
|
||||
Reference in New Issue
Block a user