[vlmc-devel] MediaCellView: Force construction of a valid QTime

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 24 20:09:42 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 15:40:35 2014 +0200| [124caf22b80d709fe374cf9aa4683f00dbe83d7a] | committer: Hugo Beauzée-Luyssen

MediaCellView: Force construction of a valid QTime

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=124caf22b80d709fe374cf9aa4683f00dbe83d7a
---

 src/Gui/library/MediaCellView.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/library/MediaCellView.cpp b/src/Gui/library/MediaCellView.cpp
index 01b7916..373443f 100644
--- a/src/Gui/library/MediaCellView.cpp
+++ b/src/Gui/library/MediaCellView.cpp
@@ -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" ) );
 }



More information about the Vlmc-devel mailing list