diff --git a/src/toolbars/DeviceToolBar.cpp b/src/toolbars/DeviceToolBar.cpp index 1140b917a..1c6eda7df 100644 --- a/src/toolbars/DeviceToolBar.cpp +++ b/src/toolbars/DeviceToolBar.cpp @@ -713,7 +713,7 @@ void DeviceToolBar::ChangeDevice(bool isInput) wxChoice *combo = isInput ? mInput :mOutput; size_t i; - int selectionIndex = mInput->GetSelection(); + int selectionIndex = combo->GetSelection(); wxString host = gPrefs->Read(wxT("/AudioIO/Host"), wxT("")); const std::vector &maps = isInput ? DeviceManager::Instance()->GetInputDeviceMaps() : DeviceManager::Instance()->GetOutputDeviceMaps();