]> git.sesse.net Git - vlc/commitdiff
Qt: PLModel: initialize member
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 26 Aug 2013 17:14:18 +0000 (19:14 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 26 Aug 2013 17:19:03 +0000 (19:19 +0200)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 527bdbb376316d130d6ecfbfe3a73caec486cf41..2e09c27583e2dec8d0b6dd8e364524dce4f8a92c 100644 (file)
@@ -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.
     */