]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
- Clear periodic waveforms cbox before adding new entries
authorMichal Malý <madcatxster@prifuk.cz>
Thu, 1 Aug 2013 11:26:51 +0000 (13:26 +0200)
committerMichal Malý <madcatxster@prifuk.cz>
Thu, 1 Aug 2013 11:26:51 +0000 (13:26 +0200)
- Check the effect status upon device selection

mainwindow.cpp
periodiceffectsettings.cpp

index a5f1b0cffa84036454f13bce8e089fdd083a808f..5b72e71a9a47d0670962fab5b703bb613cb79661 100644 (file)
@@ -79,8 +79,7 @@ void MainWindow::onDeviceSelected(const QString& id)
   fillEffectTypesList(m_activeDevice->availableEffectsList());
   m_conditionEffSet->fillAvailableSubtypesList(m_activeDevice->availableConditionSubtypesList());
   m_periodicEffSet->fillAvailableWaveformsList(m_activeDevice->availableWaveformsList());
-  ui->cbox_effectTypes->setCurrentIndex(0);
-  ui->qstw_effectSpecifics->setCurrentWidget(effectSettingsByType(m_activeDevice->effectTypeFromSelectionIdx(0)));
+  onEffectSlotSelected(0);
 }
 
 void MainWindow::onEffectSlotSelected(const int idx)
index 4637200315f18a710ccf0ee4bd2f2df064a5180d..d5d474ccd91794be778c7579bbd79fa2e77015e0 100644 (file)
@@ -15,6 +15,7 @@ const EnvelopeSettings* PeriodicEffectSettings::envelopeSettings() const
 
 void PeriodicEffectSettings::fillAvailableWaveformsList(const QStringList& list)
 {
+  ui->cbox_waveform->clear();
   ui->cbox_waveform->addItems(list);
 }