mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	DeviceUISet: fixed channel instance registrations element deletion. Fixes #776
This commit is contained in:
		
							parent
							
								
									202ba6d8da
								
							
						
					
					
						commit
						0966d48d3c
					
				@ -132,6 +132,7 @@ void DeviceUISet::freeChannels()
 | 
			
		||||
        m_channelInstanceRegistrations[i].m_channelAPI->destroy();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    m_channelInstanceRegistrations.clear();
 | 
			
		||||
    m_deviceSet->clearChannels();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -144,6 +145,7 @@ void DeviceUISet::deleteChannel(int channelIndex)
 | 
			
		||||
                channelIndex);
 | 
			
		||||
        m_channelInstanceRegistrations[channelIndex].m_gui->destroy();
 | 
			
		||||
        m_channelInstanceRegistrations[channelIndex].m_channelAPI->destroy();
 | 
			
		||||
        m_channelInstanceRegistrations.removeAt(channelIndex);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    m_deviceSet->removeChannelInstanceAt(channelIndex);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user