Fix constant status of '[F] Downloading'. Closes #7628.

This commit is contained in:
sledgehammer999
2018-01-01 20:04:54 +02:00
parent 267362a7a0
commit 13f69a2245
2 changed files with 15 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ QVariant TorrentModel::data(const QModelIndex &index, int role) const
case TR_PROGRESS:
return torrent->progress();
case TR_STATUS:
return static_cast<int>(torrent->state());
return QVariant::fromValue(torrent->state());
case TR_SEEDS:
return (role == Qt::DisplayRole) ? torrent->seedsCount() : torrent->totalSeedsCount();
case TR_PEERS: