diff --git a/src/gui/widgets/FadeButton.cpp b/src/gui/widgets/FadeButton.cpp index 4fea14f97a4..5bd24918162 100644 --- a/src/gui/widgets/FadeButton.cpp +++ b/src/gui/widgets/FadeButton.cpp @@ -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() *