From 9e2fb91a9e6190ef9726fba2ed0c542acb4ab420 Mon Sep 17 00:00:00 2001 From: Christian Daniel Date: Mon, 4 Nov 2013 21:56:00 +0100 Subject: [PATCH] TCPSrc: minor fixed --- plugins/channel/tcpsrc/tcpsrcgui.cpp | 7 +++---- plugins/channel/tcpsrc/tcpsrcplugin.cpp | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/channel/tcpsrc/tcpsrcgui.cpp b/plugins/channel/tcpsrc/tcpsrcgui.cpp index bf33167..5e8f13d 100644 --- a/plugins/channel/tcpsrc/tcpsrcgui.cpp +++ b/plugins/channel/tcpsrc/tcpsrcgui.cpp @@ -118,9 +118,10 @@ void TCPSrcGUI::channelMarkerChanged() TCPSrcGUI::TCPSrcGUI(PluginAPI* pluginAPI, QWidget* parent) : RollupWidget(parent), ui(new Ui::TCPSrcGUI), - m_pluginAPI(pluginAPI) + m_pluginAPI(pluginAPI), + m_tcpSrc(NULL), + m_basicSettingsShown(false) { - m_tcpSrc = NULL; ui->setupUi(this); ui->connectedClientsBox->hide(); connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool))); @@ -148,8 +149,6 @@ TCPSrcGUI::TCPSrcGUI(PluginAPI* pluginAPI, QWidget* parent) : ui->spectrumGUI->setBuddies(m_threadedSampleSink->getMessageQueue(), m_spectrumVis, ui->glSpectrum); - m_basicSettingsShown = false; - applySettings(); } diff --git a/plugins/channel/tcpsrc/tcpsrcplugin.cpp b/plugins/channel/tcpsrc/tcpsrcplugin.cpp index 81b654b..4e347d8 100644 --- a/plugins/channel/tcpsrc/tcpsrcplugin.cpp +++ b/plugins/channel/tcpsrc/tcpsrcplugin.cpp @@ -50,6 +50,4 @@ void TCPSrcPlugin::createInstanceTCPSrc() TCPSrcGUI* gui = TCPSrcGUI::create(m_pluginAPI); m_pluginAPI->registerChannelInstance("de.maintech.sdrangelove.channel.tcpsrc", gui); m_pluginAPI->addChannelRollup(gui); - //m_pluginAPI->registerChannelInstance("de.maintech.sdrangelove.channel.tcpsrc", TCPSrcGUI::create(m_pluginAPI)); } -