mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2021-08-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed regressions in rdlogmanager(1) that caused the 'Color' setting for Events and Clocks to fail to be saved. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -319,7 +319,12 @@ QPixmap EventListModel::MakeIcon(const QString &color) const
|
||||
QPixmap pix(QSize(15,15));
|
||||
QPainter *p=new QPainter();
|
||||
p->begin(&pix);
|
||||
p->fillRect(0,0,15,15,QColor(color));
|
||||
if(QColor(color).isValid()) {
|
||||
p->fillRect(0,0,15,15,QColor(color));
|
||||
}
|
||||
else {
|
||||
p->fillRect(0,0,15,15,d_palette.color(QPalette::Background));
|
||||
}
|
||||
p->end();
|
||||
delete p;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user