Skip to content

Commit

Permalink
Fix channel indicator being on by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-w committed Mar 6, 2016
1 parent 44f688e commit 8768769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widgets/FadeButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void FadeButton::customEvent( QEvent * )
void FadeButton::paintEvent( QPaintEvent * _pe )
{
QColor col = m_normalColor;
if( m_stateTimer.elapsed() < FadeDuration )
if( ! m_stateTimer.isNull() && m_stateTimer.elapsed() < FadeDuration )
{
const float state = 1 - m_stateTimer.elapsed() / FadeDuration;
const int r = (int)( m_normalColor.red() *
Expand Down

1 comment on commit 8768769

@tresf
Copy link
Member

@tresf tresf commented on 8768769 Mar 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.