mirror of
https://github.com/transmission/transmission
synced 2025-03-16 00:39:34 +00:00
Fallback to message box warning icon if emblem-important is not provided by the icon theme
This commit is contained in:
parent
9eea4ada83
commit
3c73d74cbb
2 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ TorrentDelegateMin::drawTorrent (QPainter * painter,
|
|||
progressBarState |= QStyle::State_Small;
|
||||
|
||||
const QIcon::Mode emblemIm = isItemSelected ? QIcon::Selected : QIcon::Normal;
|
||||
const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important") : QIcon ();
|
||||
const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important", style->standardIcon (QStyle::SP_MessageBoxWarning)) : QIcon ();
|
||||
|
||||
// layout
|
||||
const QSize m (margin (*style));
|
||||
|
|
|
@ -420,7 +420,7 @@ TorrentDelegate::drawTorrent (QPainter * painter,
|
|||
progressBarState |= QStyle::State_Small;
|
||||
|
||||
const QIcon::Mode emblemIm = isItemSelected ? QIcon::Selected : QIcon::Normal;
|
||||
const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important") : QIcon ();
|
||||
const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important", style->standardIcon (QStyle::SP_MessageBoxWarning)) : QIcon ();
|
||||
|
||||
// layout
|
||||
const QSize m (margin (*style));
|
||||
|
|
Loading…
Add table
Reference in a new issue