Skip to content

Commit

Permalink
fix multiple entries in Portaudio comboboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Aug 31, 2013
1 parent 67cfaa7 commit c863bd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mscore/preferences.cpp
Expand Up @@ -880,10 +880,12 @@ void PreferenceDialog::updateValues()
Portaudio* audio = static_cast<Portaudio*>(seq->driver());
if (audio) {
QStringList apis = audio->apiList();
portaudioApi->clear();
portaudioApi->addItems(apis);
portaudioApi->setCurrentIndex(audio->currentApi());

QStringList devices = audio->deviceList(audio->currentApi());
portaudioDevice->clear();
portaudioDevice->addItems(devices);
portaudioDevice->setCurrentIndex(audio->currentDevice());

Expand All @@ -893,6 +895,7 @@ void PreferenceDialog::updateValues()
if(midiDriver){
QStringList midiInputs = midiDriver->deviceInList();
int curMidiInIdx = 0;
portMidiInput->clear();
for(int i = 0; i < midiInputs.size(); ++i) {
portMidiInput->addItem(midiInputs.at(i), i);
if (midiInputs.at(i) == prefs.portMidiInput)
Expand Down

0 comments on commit c863bd9

Please sign in to comment.