mirror of https://github.com/stella-emu/stella.git
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:
parent
7ef46b366d
commit
4b11cb1625
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue