Commit d897d7f0 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.
(cherry picked from commit 727b24988dd766eac2f8a63f93cf841aba826a92)
parent 6d479fbb
...@@ -801,9 +801,10 @@ void SPrefsPanel::apply() ...@@ -801,9 +801,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