mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Show torrent error message in transfer list
This commit is contained in:
@@ -100,7 +100,10 @@ void TransferListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
||||
break;
|
||||
case TransferListModel::TR_STATUS: {
|
||||
const auto state = index.data().value<BitTorrent::TorrentState>();
|
||||
const QString errorMsg = index.data(Qt::UserRole).toString();
|
||||
QString display = getStatusString(state);
|
||||
if (state == BitTorrent::TorrentState::Error)
|
||||
display += (": " + errorMsg);
|
||||
QItemDelegate::drawDisplay(painter, opt, opt.rect, display);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user