Fix Coverity Scan cid 143911.

`filesCount()` could return a negative value.
This commit is contained in:
Chocobo1 2016-04-16 12:37:23 +08:00
parent a12d82524a
commit 7d5ab68f50

View File

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