Commit 727b2498 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: don't ruin RC interface fallback when preferences are saved

With just "skins" and "qt", only those specific interfaces would be
probed. Thus VLC could not be started from X-less command line.
parent bfae88fb
...@@ -819,9 +819,10 @@ void SPrefsPanel::apply() ...@@ -819,9 +819,10 @@ void SPrefsPanel::apply()
case SPrefsInterface: case SPrefsInterface:
{ {
if( qobject_cast<QRadioButton *>(optionWidgets[skinRB])->isChecked() ) if( qobject_cast<QRadioButton *>(optionWidgets[skinRB])->isChecked() )
config_PutPsz( p_intf, "intf", "skins2" ); config_PutPsz( p_intf, "intf", "skins2,any" );
if( qobject_cast<QRadioButton *>(optionWidgets[qtRB])->isChecked() ) else
config_PutPsz( p_intf, "intf", "qt" ); //if( qobject_cast<QRadioButton *>(optionWidgets[qtRB])->isChecked() )
config_PutPsz( p_intf, "intf", "" );
if( qobject_cast<QComboBox *>(optionWidgets[styleCB]) ) if( qobject_cast<QComboBox *>(optionWidgets[styleCB]) )
getSettings()->setValue( "MainWindow/QtStyle", getSettings()->setValue( "MainWindow/QtStyle",
qobject_cast<QComboBox *>(optionWidgets[styleCB])->currentText() ); qobject_cast<QComboBox *>(optionWidgets[styleCB])->currentText() );
......
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