From 4498d03074b4e1a75799cee9822612472a76a76d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= <madcatxster@prifuk.cz> Date: Wed, 31 Jul 2013 22:01:07 +0200 Subject: [PATCH] Properly select the first available effect type upon device selection. --- mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.43.5