Commit 9dccad2a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4: correctly show the default Windows Audio Device

Close #9104
parent 63bda172
......@@ -1565,7 +1565,8 @@ void VLCMenuBar::updateAudioDevice( intf_thread_t * p_intf, audio_output_t *p_ao
action = new QAction( qfue( names[i] ), NULL );
action->setData( ids[i] );
action->setCheckable( true );
if( selected && !strcmp( ids[i], selected ) )
if( (selected && !strcmp( ids[i], selected ) ) ||
(selected == NULL && ids[i] && ids[i][0] == '\0' ) )
action->setChecked( true );
actionGroup->addAction( action );
current->addAction( action );
......
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