mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 14:04:46 -04:00
Simplify and clarify Plugin Manager source selection by index. Fix #2
This commit is contained in:
@@ -268,10 +268,11 @@ void PluginManager::updateSampleSourceDevices()
|
||||
void PluginManager::fillSampleSourceSelector(QComboBox* comboBox)
|
||||
{
|
||||
comboBox->clear();
|
||||
int i;
|
||||
for(i = 0; i < m_sampleSourceDevices.count(); i++)
|
||||
|
||||
for(int i = 0; i < m_sampleSourceDevices.count(); i++)
|
||||
{
|
||||
comboBox->addItem(m_sampleSourceDevices[i].m_displayName, i);
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
int PluginManager::selectSampleSourceByIndex(int index)
|
||||
|
||||
Reference in New Issue
Block a user