From c83f1956372db31b494f3217898df57bc546bfd4 Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Mon, 20 Jan 2014 19:28:05 +0100 Subject: [PATCH] CSignalBox: Set current tuner as the default frontend --- src/gui/components/cc_frm_signalbars.cpp | 3 ++- src/gui/components/cc_frm_signalbars.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm_signalbars.cpp b/src/gui/components/cc_frm_signalbars.cpp index a046e10da..d50bf21e1 100644 --- a/src/gui/components/cc_frm_signalbars.cpp +++ b/src/gui/components/cc_frm_signalbars.cpp @@ -29,6 +29,7 @@ #include #include +#include #include "cc_frm_signalbars.h" #include @@ -262,7 +263,7 @@ CSignalBox::CSignalBox(const int& xpos, const int& ypos, const int& w, const int initVarSigBox(); vertical = vert; - sbx_frontend = frontend_ref; + sbx_frontend = (frontend_ref == NULL) ? CFEManager::getInstance()->getLiveFE() : frontend_ref; x = xpos; y = ypos; width = w; diff --git a/src/gui/components/cc_frm_signalbars.h b/src/gui/components/cc_frm_signalbars.h index 846e0707e..c18344142 100644 --- a/src/gui/components/cc_frm_signalbars.h +++ b/src/gui/components/cc_frm_signalbars.h @@ -272,7 +272,7 @@ class CSignalBox : public CComponentsForm public: ///class constructor for signal noise ratio. - CSignalBox(const int& xpos, const int& ypos, const int& w, const int& h, CFrontend *frontend_ref, const bool vertical = true); + CSignalBox(const int& xpos, const int& ypos, const int& w, const int& h, CFrontend *frontend_ref = NULL, const bool vertical = true); ///returns the signal object, type = CSignalBar* CSignalBar* getScaleObject(){return sbar;};