Commit faef0357 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix default category selection

parent ea92ef2b
...@@ -48,16 +48,6 @@ ...@@ -48,16 +48,6 @@
#define ITEM_HEIGHT 50 #define ITEM_HEIGHT 50
enum {
SPrefsVideo,
SPrefsAudio,
SPrefsInputAndCodecs,
SPrefsPlaylist,
SPrefsInterface,
SPrefsSubtitles,
SPrefsAdvanced
};
/********************************************************************* /*********************************************************************
* The List of categories * The List of categories
*********************************************************************/ *********************************************************************/
...@@ -91,6 +81,8 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -91,6 +81,8 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
ADD_CATEGORY( SPrefsInterface, "Interface", interface_50x50_xpm ); ADD_CATEGORY( SPrefsInterface, "Interface", interface_50x50_xpm );
ADD_CATEGORY( SPrefsSubtitles, "Subtitles", subtitles_50x50_xpm ); ADD_CATEGORY( SPrefsSubtitles, "Subtitles", subtitles_50x50_xpm );
ADD_CATEGORY( SPrefsAdvanced, "Advanced", advanced_50x50_xpm ); ADD_CATEGORY( SPrefsAdvanced, "Advanced", advanced_50x50_xpm );
setCurrentRow( SPrefsInterface );
} }
void SPrefsCatList::ApplyAll() void SPrefsCatList::ApplyAll()
......
...@@ -28,6 +28,17 @@ ...@@ -28,6 +28,17 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/intf.h> #include <vlc/intf.h>
enum {
SPrefsVideo,
SPrefsAudio,
SPrefsInputAndCodecs,
SPrefsPlaylist,
SPrefsInterface,
SPrefsSubtitles,
SPrefsAdvanced
};
#define SPrefsDefaultCat SPrefsInterface
class ConfigControl; class ConfigControl;
class SPrefsCatList : public QListWidget class SPrefsCatList : public QListWidget
......
...@@ -143,7 +143,7 @@ void PrefsDialog::setSmall() ...@@ -143,7 +143,7 @@ void PrefsDialog::setSmall()
advanced_panel->hide(); advanced_panel->hide();
} }
if( !simple_panel ) if( !simple_panel )
simple_panel = new SPrefsPanel( p_intf, main_panel, 0 ); simple_panel = new SPrefsPanel( p_intf, main_panel, SPrefsDefaultCat );
main_panel_l->addWidget( simple_panel ); main_panel_l->addWidget( simple_panel );
simple_panel->show(); simple_panel->show();
adv_chk->hide(); adv_chk->hide();
......
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