diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index 9b7e2800b..e1dc4a586 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -43,7 +43,6 @@ #include #include -#include #include #include #include @@ -62,7 +61,6 @@ extern CRemoteControl *g_RemoteControl; /* neutrino.cpp */ extern cVideo * videoDecoder; -extern CInfoClock *InfoClock; #define COL_INFOBAR_BUTTONS_BACKGROUND (COL_INFOBAR_SHADOW_PLUS_1) @@ -483,20 +481,10 @@ void CInfoViewerBB::showIcon_RadioText(bool rt_available) return; std::string rt_icon; - if (rt_available) { - if (g_Radiotext->S_RtOsd) { - rt_icon = NEUTRINO_ICON_RADIOTEXTGET; - InfoClock->enableInfoClock(false); - } - else { - rt_icon = NEUTRINO_ICON_RADIOTEXTWAIT; - InfoClock->enableInfoClock(true); - } - } - else { + if (rt_available) + rt_icon = (g_Radiotext->S_RtOsd) ? NEUTRINO_ICON_RADIOTEXTGET : NEUTRINO_ICON_RADIOTEXTWAIT; + else rt_icon = NEUTRINO_ICON_RADIOTEXTOFF; - InfoClock->enableInfoClock(true); - } showBBIcons(CInfoViewerBB::ICON_RT, rt_icon); }