Skip to content

Commit

Permalink
MAINT generate random colors for new groups
Browse files Browse the repository at this point in the history
  • Loading branch information
juangpc committed May 26, 2021
1 parent bf89310 commit e60657f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/mne_analyze/plugins/events/eventview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ bool EventView::newUserGroup(const QString& sName,
QColor groupColor;

if (!bDefaultColor) {
groupColor = m_pColordialog->getColor(Qt::black, this);
groupColor = QColor(rand()%255, rand()%255, rand()%255);
if(!groupColor.isValid()){
return false;
}
Expand Down

0 comments on commit e60657f

Please sign in to comment.