File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -880,10 +880,12 @@ void PreferenceDialog::updateValues()
880
880
Portaudio* audio = static_cast <Portaudio*>(seq->driver ());
881
881
if (audio) {
882
882
QStringList apis = audio->apiList ();
883
+ portaudioApi->clear ();
883
884
portaudioApi->addItems (apis);
884
885
portaudioApi->setCurrentIndex (audio->currentApi ());
885
886
886
887
QStringList devices = audio->deviceList (audio->currentApi ());
888
+ portaudioDevice->clear ();
887
889
portaudioDevice->addItems (devices);
888
890
portaudioDevice->setCurrentIndex (audio->currentDevice ());
889
891
@@ -893,6 +895,7 @@ void PreferenceDialog::updateValues()
893
895
if (midiDriver){
894
896
QStringList midiInputs = midiDriver->deviceInList ();
895
897
int curMidiInIdx = 0 ;
898
+ portMidiInput->clear ();
896
899
for (int i = 0 ; i < midiInputs.size (); ++i) {
897
900
portMidiInput->addItem (midiInputs.at (i), i);
898
901
if (midiInputs.at (i) == prefs.portMidiInput )
You can’t perform that action at this time.
0 commit comments