Skip to content
Snippets Groups Projects
Commit eefbe74f authored by Lyndon Brown's avatar Lyndon Brown Committed by Jean-Baptiste Kempf
Browse files

qt: fix disabling unavailable file type widgets in simple prefs

The audio-file output option for instance should be disabled if
the `audiofile` module is unavailable.
parent fdf0eaa4
No related branches found
No related tags found
No related merge requests found
......@@ -365,6 +365,11 @@ SPrefsPanel::SPrefsPanel( qt_intf_t *_p_intf, QWidget *_parent,
control = new type ## ConfigControl( \
p_config, label, qcontrol, qbutton ); \
controls.append( control ); \
} \
else { \
qcontrol->setEnabled( false ); \
if( label ) label->setEnabled( false ); \
if( qbutton ) qbutton->setEnabled( false ); \
}
#define START_SPREFS_CAT( name , label ) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment