From 17c81fac0d7b3784972d08890648206d7d71e71a Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 10 Oct 2015 05:13:41 +0200 Subject: [PATCH] Make connection with the device selection combo and proper handler in the main UI --- sdrbase/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdrbase/mainwindow.cpp b/sdrbase/mainwindow.cpp index c6651ccd3..8632d295e 100644 --- a/sdrbase/mainwindow.cpp +++ b/sdrbase/mainwindow.cpp @@ -110,6 +110,8 @@ MainWindow::MainWindow(QWidget* parent) : //ui->rxSpectrumGUI->setBuddies(m_rxSpectrumVis->getInputMessageQueue(), m_rxSpectrumVis, ui->rxSpectrum); //m_dspEngine-> + // TODO: This will go in a create new device tab method: + m_deviceUIs.push_back(new DeviceUISet(m_masterTimer)); ui->tabSpectra->addTab(m_deviceUIs.back()->m_spectrum, "X0"); @@ -118,6 +120,7 @@ MainWindow::MainWindow(QWidget* parent) : ui->tabChannels->addTab(m_deviceUIs.back()->m_channelWindow, "X0"); bool sampleSourceSignalsBlocked = m_deviceUIs.back()->m_sampleSource->blockSignals(true); m_pluginManager->fillSampleSourceSelector(m_deviceUIs.back()->m_sampleSource); + connect(m_deviceUIs.back()->m_sampleSource, SIGNAL(currentIndexChanged(int)), this, SLOT(on_sampleSource_currentIndexChanged(int))); m_deviceUIs.back()->m_sampleSource->blockSignals(sampleSourceSignalsBlocked); ui->tabInputs->addTab(m_deviceUIs.back()->m_sampleSource, "X0");