|
|
|
@ -428,6 +428,9 @@ TorrentStatusReport TorrentModel::getTorrentStatusReport() const
@@ -428,6 +428,9 @@ TorrentStatusReport TorrentModel::getTorrentStatusReport() const
|
|
|
|
|
++report.nb_active; |
|
|
|
|
++report.nb_downloading; |
|
|
|
|
break; |
|
|
|
|
case TorrentModelItem::STATE_DOWNLOADING_META: |
|
|
|
|
++report.nb_downloading; |
|
|
|
|
break; |
|
|
|
|
case TorrentModelItem::STATE_PAUSED_DL: |
|
|
|
|
++report.nb_paused; |
|
|
|
|
case TorrentModelItem::STATE_STALLED_DL: |
|
|
|
@ -492,6 +495,7 @@ bool TorrentModel::inhibitSystem()
@@ -492,6 +495,7 @@ bool TorrentModel::inhibitSystem()
|
|
|
|
|
for ( ; it != itend; ++it) { |
|
|
|
|
switch((*it)->data(TorrentModelItem::TR_STATUS).toInt()) { |
|
|
|
|
case TorrentModelItem::STATE_DOWNLOADING: |
|
|
|
|
case TorrentModelItem::STATE_DOWNLOADING_META: |
|
|
|
|
case TorrentModelItem::STATE_STALLED_DL: |
|
|
|
|
case TorrentModelItem::STATE_SEEDING: |
|
|
|
|
case TorrentModelItem::STATE_STALLED_UP: |
|
|
|
|