[vlc-commits] Qt: PLModel: initialize member

Francois Cartegnie git at videolan.org
Mon Aug 26 19:19:57 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 26 19:14:18 2013 +0200| [67a96ef76b7837adefd387cb1ed209c5a1f5d6eb] | committer: Francois Cartegnie

Qt: PLModel: initialize member

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

 modules/gui/qt4/components/playlist/playlist_model.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 527bdbb..2e09c27 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -49,6 +49,7 @@
 VLCProxyModel::VLCProxyModel( QObject *parent )
     : QSortFilterProxyModel( parent ), VLCModelSubInterface()
 {
+    for ( int i = 0; i <= SQLML_MODEL ; i++ ) sourcemodels[ i ] = NULL;
     /* Because we can't directly plug the signal without mapping
        the index to the proxy model, we need a conversion step.
     */



More information about the vlc-commits mailing list