]> git.sesse.net Git - vlc/commitdiff
Cosmetics.
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 18 Sep 2008 23:53:38 +0000 (01:53 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 18 Sep 2008 23:53:38 +0000 (01:53 +0200)
modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/sorting.h

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