1
0
Fork 0
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:
Mike Gelfand 2015-01-17 13:49:02 +00:00
parent 9eea4ada83
commit 3c73d74cbb
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -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));