Commit 2c2b1871 authored by Lyndon Brown's avatar Lyndon Brown Committed by Hugo Beauzée-Luyssen
Browse files

qt: hide skinning controls in simple prefs if skinning unavailable

I.e. if compiled without skins2, hide the skinning bits.
parent 483bbe56
......@@ -776,17 +776,25 @@ SPrefsPanel::SPrefsPanel( qt_intf_t *_p_intf, QWidget *_parent,
ui.osGroupBox->hide();
#endif
/* interface */
char *psz_intf = config_GetPsz( "intf" );
if( psz_intf )
if( !module_exists( "skins2" ) )
{
if( strstr( psz_intf, "skin" ) )
ui.skins->setChecked( true );
} else {
/* defaults to qt */
ui.qt->setChecked( true );
ui.LooknfeelSelection->hide();
ui.mainPreview->hide();
}
else
{
/* interface */
char *psz_intf = config_GetPsz( "intf" );
if( psz_intf )
{
if( strstr( psz_intf, "skin" ) )
ui.skins->setChecked( true );
} else {
/* defaults to qt */
ui.qt->setChecked( true );
}
free( psz_intf );
}
free( psz_intf );
optionWidgets["skinRB"] = ui.skins;
optionWidgets["qtRB"] = ui.qt;
......
Supports Markdown
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