Commit ef732d7d authored by Antoine Cellerier's avatar Antoine Cellerier

Cosmetics.

parent a0195160
...@@ -68,9 +68,9 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m, QSett ...@@ -68,9 +68,9 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m, QSett
} }
else else
{ {
i_showflags = settings->value( "qt-pl-showflags", 38 ).toInt(); i_showflags = settings->value( "qt-pl-showflags", COLUMN_DEFAULT ).toInt();
if( i_showflags < 1) if( i_showflags < 1)
i_showflags = 38; /* reasonable default to show something; */ i_showflags = COLUMN_DEFAULT; /* reasonable default to show something; */
else if ( i_showflags >= COLUMN_END ) else if ( i_showflags >= COLUMN_END )
i_showflags = COLUMN_END - 1; /* show everything */ i_showflags = COLUMN_END - 1; /* show everything */
......
...@@ -39,6 +39,8 @@ enum ...@@ -39,6 +39,8 @@ enum
COLUMN_END = 0x0200 COLUMN_END = 0x0200
}; };
#define COLUMN_DEFAULT (COLUMN_TITLE|COLUMN_DURATION|COLUMN_ALBUM)
/* Return the title of a column */ /* Return the title of a column */
static const char * psz_column_title( uint32_t i_column ) static const char * psz_column_title( uint32_t i_column )
{ {
......
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