Simplify and clarify Plugin Manager source selection by index. Fix #2

This commit is contained in:
Edouard Griffiths 2015-10-02 14:21:56 +02:00
parent 0a92354682
commit 662b575fa1
1 changed files with 4 additions and 3 deletions

View File

@ -268,10 +268,11 @@ void PluginManager::updateSampleSourceDevices()
void PluginManager::fillSampleSourceSelector(QComboBox* comboBox) void PluginManager::fillSampleSourceSelector(QComboBox* comboBox)
{ {
comboBox->clear(); 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); comboBox->addItem(m_sampleSourceDevices[i].m_displayName, i);
return i; }
} }
int PluginManager::selectSampleSourceByIndex(int index) int PluginManager::selectSampleSourceByIndex(int index)