From 43be0740041f977ea7c2fe44e20b94b4df347e33 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 7 Oct 2015 23:39:40 +0200 Subject: [PATCH] Dynamic input tab allocation --- sdrbase/mainwindow.cpp | 3 ++- sdrbase/mainwindow.ui | 23 +---------------------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/sdrbase/mainwindow.cpp b/sdrbase/mainwindow.cpp index e95366bcf..867c1f4f1 100644 --- a/sdrbase/mainwindow.cpp +++ b/sdrbase/mainwindow.cpp @@ -594,8 +594,9 @@ void MainWindow::on_action_Preferences_triggered() void MainWindow::on_sampleSource_currentIndexChanged(int index) { m_pluginManager->saveSourceSettings(m_settings.getWorkingPreset()); - m_pluginManager->selectSampleSourceByIndex(ui->sampleSource->currentIndex()); + //m_pluginManager->selectSampleSourceByIndex(ui->sampleSource->currentIndex()); //m_settings.setSourceIndex(ui->sampleSource->currentIndex()); + m_pluginManager->selectSampleSourceByIndex(m_deviceUIs.back()->m_sampleSource->currentIndex()); m_settings.setSourceIndex(m_deviceUIs.back()->m_sampleSource->currentIndex()); m_pluginManager->loadSourceSettings(m_settings.getWorkingPreset()); } diff --git a/sdrbase/mainwindow.ui b/sdrbase/mainwindow.ui index 0e413924e..f60b104a6 100644 --- a/sdrbase/mainwindow.ui +++ b/sdrbase/mainwindow.ui @@ -375,29 +375,8 @@ - 0 + -1 - - - Rx - - - - - 0 - 0 - 255 - 24 - - - - - 255 - 0 - - - -