Commit 124caf22 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaCellView: Force construction of a valid QTime

parent 305d6662
......@@ -258,7 +258,7 @@ MediaCellView::arrowButtonClicked( QWidget*, QMouseEvent* )
void
MediaCellView::setLength( qint64 length )
{
QTime duration;
QTime duration( 0, 0 );
duration = duration.addMSecs( length );
m_ui->length->setText( duration.toString( "hh:mm:ss" ) );
}
......
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