Merge pull request #5124 from Chocobo1/fix_warnings

Fix warnings
This commit is contained in:
sledgehammer999
2016-04-17 11:11:25 -05:00
3 changed files with 3 additions and 16 deletions

View File

@@ -35,7 +35,7 @@
<x>0</x>
<y>0</y>
<width>914</width>
<height>21</height>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menuEdit">
@@ -108,8 +108,6 @@
<addaction name="actionCriticalMessages"/>
</widget>
<addaction name="separator"/>
<addaction name="actionSearch_engine"/>
<addaction name="actionRSS_Reader"/>
<addaction name="menuLog"/>
<addaction name="actionTopToolBar"/>
<addaction name="actionSpeedInTitleBar"/>
@@ -355,17 +353,6 @@
<string>P&amp;ause All</string>
</property>
</action>
<action name="actionExecutionLogs">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>&amp;Log</string>
</property>
<property name="toolTip">
<string>Execution Log</string>
</property>
</action>
<action name="actionAutoExit">
<property name="checkable">
<bool>true</bool>

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