Fix avoxport popup not selecting correct device in InputDialog.

Incidentally, I think we should change VarList::push_back() to not allow this type of error to happen.
Having to pass two parameters with the same value seems to be very hacky.
This commit is contained in:
Stephen Anthony 2020-11-05 13:20:45 -03:30
parent 7ef46b366d
commit 4b11cb1625
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ void InputDialog::loadConfig()
VariantList items;
for(const auto& port: ports)
VarList::push_back(items, port);
VarList::push_back(items, port, port);
if(avoxport != EmptyString && !BSPF::contains(ports, avoxport))
VarList::push_back(items, avoxport, avoxport);
if(items.size() == 0)