]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Properly select the first available effect type upon device selection.
authorMichal Malý <madcatxster@prifuk.cz>
Wed, 31 Jul 2013 20:01:07 +0000 (22:01 +0200)
committerMichal Malý <madcatxster@prifuk.cz>
Wed, 31 Jul 2013 20:01:07 +0000 (22:01 +0200)
mainwindow.cpp

index 8efde441785200fcb9fc1ed16b6abc77006f2273..a5f1b0cffa84036454f13bce8e089fdd083a808f 100644 (file)
@@ -79,6 +79,8 @@ 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)));
 }
 
 void MainWindow::onEffectSlotSelected(const int idx)