Browse Source

Fix Coverity Scan cid 143911.

`filesCount()` could return a negative value.
adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
7d5ab68f50
  1. 2
      src/gui/torrentcontentmodel.cpp

2
src/gui/torrentcontentmodel.cpp

@ -285,7 +285,7 @@ void TorrentContentModel::clear() @@ -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();

Loading…
Cancel
Save