From 24ac76640e09cf31c0b25e6f0fd6d055adb1ff51 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 12 Mar 2012 14:11:54 +0400 Subject: [PATCH] gui/channellist.h: make tuned private --- src/gui/channellist.h | 2 +- src/neutrino.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/channellist.h b/src/gui/channellist.h index cbf48afbc..679a07d49 100644 --- a/src/gui/channellist.h +++ b/src/gui/channellist.h @@ -57,6 +57,7 @@ class CChannelList private: CFrameBuffer *frameBuffer; unsigned int selected, selected_in_new_mode; + unsigned int tuned; t_channel_id selected_chid; CLastChannel lastChList; unsigned int liststart; @@ -143,7 +144,6 @@ public: int getSize() const; int getSelectedChannelIndex() const; void setSize(int newsize); - unsigned int tuned; int doChannelMenu(void); void SortAlpha(void); void SortSat(void); diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 174169e20..efd759bb4 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -3290,7 +3290,7 @@ void CNeutrinoApp::tvMode( bool rezap ) SetChannelMode(g_settings.channel_mode); if( rezap ) { firstChannel(); - channelList->tuned = 0xfffffff;; + channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */ channelList->zapTo( firstchannel.channelNumber -1 ); } #ifdef USEACTIONLOG @@ -3494,7 +3494,7 @@ void CNeutrinoApp::radioMode( bool rezap) SetChannelMode(g_settings.channel_mode_radio); if( rezap ) { firstChannel(); - channelList->tuned = 0xfffffff;; + channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */ channelList->zapTo( firstchannel.channelNumber -1 ); } videoDecoder->ShowPicture(DATADIR "/neutrino/icons/radiomode.jpg");