summaryrefslogtreecommitdiff
path: root/plugins/pilotskin/patches/pilotskin-0.0.2_channelcheck.diff
blob: 08fcefadf8a5feb1b9c7efbde34c2cffd08a7b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- pilotskinosd.c.orig	2006-05-02 23:33:11.000000000 +0200
+++ pilotskinosd.c	2007-06-25 00:40:27.000000000 +0200
@@ -453,7 +453,7 @@
 void cPilotskinOsd::CursorOK() {
   DrawMenu(0,2);
   cChannel *Channel =  Channels.GetByNumber(PilotChannelNumber);
-  if (Channel){
+  if (Channel && Channel->Number() != cDevice::CurrentChannel()){
     cDevice::PrimaryDevice()->SwitchChannel(Channel, true);
   }
 }