diff --git a/plugins/channelrx/localsink/localsink.cpp b/plugins/channelrx/localsink/localsink.cpp index 8acdb8e69..e510a0af1 100644 --- a/plugins/channelrx/localsink/localsink.cpp +++ b/plugins/channelrx/localsink/localsink.cpp @@ -819,7 +819,7 @@ void LocalSink::updateDeviceSetList() LocalSinkSettings settings = m_settings; int newIndexInList; - if (it != deviceSets.begin()) + if (!m_localInputDeviceIndexes.empty()) // there are some local input devices { if (m_settings.m_localDeviceIndex < 0) { newIndexInList = 0;