From 4b11cb162597c9c731fb87c4d5afc34d1ae627ab Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Thu, 5 Nov 2020 13:20:45 -0330 Subject: [PATCH] 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. --- src/gui/InputDialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/InputDialog.cxx b/src/gui/InputDialog.cxx index e48a1fe61..d5d847f1b 100644 --- a/src/gui/InputDialog.cxx +++ b/src/gui/InputDialog.cxx @@ -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)