Commit 29075ac9 authored by Joris Guisson's avatar Joris Guisson
Browse files

Backport rev 1022665 from trunk (TorrentFileListModel checkstate fix)

svn path=/branches/stable/extragear-kde4/network/ktorrent/; revision=1026868
parent a05d962c
Changes in 3.2.4 :
- Improve flexibility of IP blocklist parsing to support more formats
- Fix bug in TorrentFileListModel causing wrong checkstate to be shown
Changes in 3.2.3 :
- Make sure View gets focus back when you are finished editing the name of a torrent
......
......@@ -135,10 +135,10 @@ namespace kt
else
return KIcon(KMimeType::findByPath(s.torrent_name)->iconName());
}
else if (role == Qt::CheckStateRole && index.column() == 0)
else if (role == Qt::CheckStateRole && index.column() == 0 && multi)
{
if (multi)
return tc->getTorrentFile(r).doNotDownload() ? Qt::Unchecked : Qt::Checked;;
const TorrentFileInterface & file = tc->getTorrentFile(r);
return file.doNotDownload() || file.getPriority() == ONLY_SEED_PRIORITY ? Qt::Unchecked : Qt::Checked;
}
return QVariant();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment