mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
remove useless torrent state check
This commit is contained in:
parent
1cede85794
commit
f11abd493b
1 changed files with 1 additions and 5 deletions
|
@ -90,11 +90,7 @@ void TransferListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
|||
QStyleOptionViewItem customOption {option};
|
||||
customOption.state.setFlag(QStyle::State_Enabled, isEnableState(torrentState));
|
||||
|
||||
QColor color = {};
|
||||
if (torrentState != TorrentState::Unknown)
|
||||
{
|
||||
color = index.data(Qt::ForegroundRole).value<QColor>();
|
||||
}
|
||||
const QColor color = index.data(Qt::ForegroundRole).value<QColor>();
|
||||
|
||||
m_progressBarPainter.paint(painter, customOption, index.data().toString(), progress, color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue