[vlc-commits] Qt: SliderBar: don't try to assign undefined value

Francois Cartegnie git at videolan.org
Mon Feb 10 10:56:59 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb  7 15:37:35 2020 +0100| [a10f52bc4d2a20eecd59a34d567abc369bdf9dbc] | committer: Francois Cartegnie

Qt: SliderBar: don't try to assign undefined value

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a10f52bc4d2a20eecd59a34d567abc369bdf9dbc
---

 modules/gui/qt/player/qml/SliderBar.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/player/qml/SliderBar.qml b/modules/gui/qt/player/qml/SliderBar.qml
index 77d0556a65..f1c89d95cc 100644
--- a/modules/gui/qt/player/qml/SliderBar.qml
+++ b/modules/gui/qt/player/qml/SliderBar.qml
@@ -222,7 +222,7 @@ Slider {
                 model: player.chapters
                 Rectangle {
                     id: seekpointsRect
-                    property real position: model.position
+                    property real position: model.position === undefined ? 0.0 : model.position
 
                     color: VLCStyle.colors.seekpoint
                     width: 1 * VLCStyle.scale



More information about the vlc-commits mailing list