]> git.sesse.net Git - vlc/commitdiff
Avoid potential problems with bad saved value
authorLukas Durfina <lukas.durfina@gmail.com>
Mon, 23 Jun 2008 17:33:21 +0000 (19:33 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Jun 2008 14:05:21 +0000 (07:05 -0700)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/playlist/playlist_item.cpp

index fd25e3efefd7fd17b797738911e4388660fecfec..507ffc77aa8e91e68533f9cf48b3feb75df28378 100644 (file)
@@ -73,7 +73,10 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m )
             QSettings settings( "vlc", "vlc-qt-interface" );
             i_showflags = settings.value( "qt-pl-showflags", 39 ).toInt();
             if( i_showflags < 1)
-                i_showflags = 39; //reasonable default to show something;
+                i_showflags = 39; /* reasonable default to show something; */
+            else if ( i_showflags >= COLUMN_END )
+                i_showflags = COLUMN_END - 1; /* show everything */
+
             updateColumnHeaders();
         }
     }