mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-12 13:54:13 -04:00
Merge pull request #2797 from munzzyy/fix_2764
LocalSink: fix crash when adding channel with no Local Input device (#2764)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user