Do not report torrent being checked as queued

This commit is contained in:
Christophe Dumez
2011-03-13 09:42:52 +00:00
parent 52f6b008f4
commit 01df76915c
2 changed files with 8 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
- BUGFIX: Improve folder removal behavior - BUGFIX: Improve folder removal behavior
- BUGFIX: Make sure the .unwanted folder is deleted on soft torrent removal - BUGFIX: Make sure the .unwanted folder is deleted on soft torrent removal
- BUGFIX: Indicate support for Magnet links in desktop file (Fisiu) - BUGFIX: Indicate support for Magnet links in desktop file (Fisiu)
- BUGFIX: Do not report torrent being checked as queued
* Sat Feb 26 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.7 * Sat Feb 26 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.7
- BUGFIX: Encoding fixes (Windows) - BUGFIX: Encoding fixes (Windows)

View File

@@ -57,9 +57,13 @@ TorrentModelItem::State TorrentModelItem::state() const
return m_torrent.is_seed() ? STATE_PAUSED_UP : STATE_PAUSED_DL; return m_torrent.is_seed() ? STATE_PAUSED_UP : STATE_PAUSED_DL;
} }
if(m_torrent.is_queued()) { if(m_torrent.is_queued()) {
m_icon = QIcon(":/Icons/skin/queued.png"); if(m_torrent.state() != torrent_status::queued_for_checking
m_fgColor = QColor("grey"); && m_torrent.state() != torrent_status::checking_resume_data
return m_torrent.is_seed() ? STATE_QUEUED_UP : STATE_QUEUED_DL; && m_torrent.state() != torrent_status::checking_files) {
m_icon = QIcon(":/Icons/skin/queued.png");
m_fgColor = QColor("grey");
return m_torrent.is_seed() ? STATE_QUEUED_UP : STATE_QUEUED_DL;
}
} }
// Other states // Other states
switch(m_torrent.state()) { switch(m_torrent.state()) {