Skip to content
Permalink
Browse files

Validate audio/MIDI backend when opening setup dialog

Original work: #4372 by @justnope
  • Loading branch information...
PhysSong committed Jun 6, 2018
1 parent a5a13b1 commit 3064f03818198bf8881aff644a14b57e500938ed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/SetupDialog.cpp
@@ -833,7 +833,7 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) :
// If no preferred audio device is saved, save the current one
QString audioDevName =
ConfigManager::inst()->value( "mixer", "audiodev" );
if( audioDevName.length() == 0 )
if( m_audioInterfaces->findText(audioDevName) < 0 )
{
audioDevName = Engine::mixer()->audioDevName();
ConfigManager::inst()->setValue(
@@ -936,7 +936,7 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) :

QString midiDevName =
ConfigManager::inst()->value( "mixer", "mididev" );
if( midiDevName.length() == 0 )
if( m_midiInterfaces->findText(midiDevName) < 0 )
{
midiDevName = Engine::mixer()->midiClientName();
ConfigManager::inst()->setValue(

0 comments on commit 3064f03

Please sign in to comment.
You can’t perform that action at this time.