From 70371b93a94e6cea0c803c1d100c5829f11190c9 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 19 Mar 2012 18:06:57 +0400 Subject: [PATCH] gui/channellist.cpp: bugfix, reset selected chid in setSelected --- src/gui/channellist.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 2481945d4..13a2f6825 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1115,6 +1115,10 @@ void CChannelList::setSelected( int nChannelNr) selected = nChannelNr; //FIXME real difference between tuned and selected ?! tuned = nChannelNr; + if(tuned < chanlist.size()) + selected_chid = chanlist[tuned]->getChannelID(); + else + selected_chid = 0; } // -- Zap to channel with channel_id