From 9115e23184e472cec6bd114996845aa40a105047 Mon Sep 17 00:00:00 2001 From: munzzyy Date: Fri, 10 Jul 2026 14:15:24 -0500 Subject: [PATCH] LocalSink: fix crash when adding channel with no Local Input device. Fixes #2764 --- plugins/channelrx/localsink/localsink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;