Commit 4e4d126b authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: fix segfault when customizing buttons

parent 8c6482b3
...@@ -400,7 +400,7 @@ void SeekSlider::paintEvent( QPaintEvent *ev ) ...@@ -400,7 +400,7 @@ void SeekSlider::paintEvent( QPaintEvent *ev )
option.sliderValue = value(); option.sliderValue = value();
option.maximum = maximum(); option.maximum = maximum();
option.minimum = minimum(); option.minimum = minimum();
foreach( const SeekPoint &point, chapters->getPoints() ) if ( chapters ) foreach( const SeekPoint &point, chapters->getPoints() )
option.points << point.time; option.points << point.time;
QPainter painter( this ); QPainter painter( this );
style()->drawComplexControl( QStyle::CC_Slider, &option, &painter, this ); style()->drawComplexControl( QStyle::CC_Slider, &option, &painter, this );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment