mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Fix Coverity Scan cid 143911.
`filesCount()` could return a negative value.
This commit is contained in:
parent
a12d82524a
commit
7d5ab68f50
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ void TorrentContentModel::clear()
|
||||||
void TorrentContentModel::setupModelData(const BitTorrent::TorrentInfo &info)
|
void TorrentContentModel::setupModelData(const BitTorrent::TorrentInfo &info)
|
||||||
{
|
{
|
||||||
qDebug("setup model data called");
|
qDebug("setup model data called");
|
||||||
if (info.filesCount() == 0)
|
if (info.filesCount() <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
emit layoutAboutToBeChanged();
|
emit layoutAboutToBeChanged();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue