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