Commit fa41853f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: preselect DVD drive

Close #6719
parent a781db31
......@@ -348,6 +348,9 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
};
QComboBox *discCombo = ui.deviceCombo; /* avoid namespacing in macro */
POPULATE_WITH_DEVS( ppsz_discdevices, discCombo );
int temp = ui.deviceCombo->findData( config_GetPsz( p_intf, "dvd" ), Qt::UserRole, Qt::MatchStartsWith );
if( temp != -1 )
ui.deviceCombo->setCurrentIndex( temp );
#endif
/* CONNECTs */
......
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