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:
Fred Gleason
2021-08-15 15:16:59 -04:00
parent fcb3ad7b27
commit b2adad3a32
7 changed files with 29 additions and 9 deletions

View File

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