From: Michal MalĂ˝ Date: Wed, 31 Jul 2013 20:01:07 +0000 (+0200) Subject: Properly select the first available effect type upon device selection. X-Git-Tag: 0.2a~1 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=4498d03074b4e1a75799cee9822612472a76a76d;p=FFBChecker.git Properly select the first available effect type upon device selection. --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 8efde44..a5f1b0c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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)