mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06:00
Fix constant status of '[F] Downloading'. Closes #7628.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user