Commit f7bb9fcf authored by Lukas Durfina's avatar Lukas Durfina Committed by Jean-Baptiste Kempf

Avoid potential problems with bad saved value

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1fcc611a
......@@ -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();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment