summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-10-03 11:01:46 +0200
committerlouis <louis.braun@gmx.de>2013-10-03 11:01:46 +0200
commit342afc759bb81fd1065048893a020c1a38d200aa (patch)
tree42decd79d3200463d30e4013b259a5d7add8e823
parent4a821c98ed14954c0fc2745ff7c2b99c75d56b1f (diff)
downloadskin-nopacity-342afc759bb81fd1065048893a020c1a38d200aa.tar.gz
skin-nopacity-342afc759bb81fd1065048893a020c1a38d200aa.tar.bz2
Fixed a bug that running instant recording is not displayed in displayChannel
-rw-r--r--HISTORY2
-rw-r--r--displaychannel.c13
2 files changed, 13 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 9d66946..eec245b 100644
--- a/HISTORY
+++ b/HISTORY
@@ -296,3 +296,5 @@ Version 0.1.4
- Changed and added some color definitions
- Added theme "Keep it light" (thanks @Saman for providing the theme)
- Added additional configurable channel logo cache
+- Fixed a bug that running instant recording is not displayed in
+ displayChannel
diff --git a/displaychannel.c b/displaychannel.c
index 7310e9b..6dd8dc3 100644
--- a/displaychannel.c
+++ b/displaychannel.c
@@ -659,8 +659,17 @@ void cNopacityDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Fol
int space = geoManager->channelWidth - 9*indent - seenWidth - startTimeWidth - config.resolutionIconSize;
bool drawRecIcon = false;
int widthRecIcon = 0;
- if (e->HasTimer()) {
- drawRecIcon = true;
+ //check for timers
+ if (i==0) {
+ eTimerMatch TimerMatch = tmNone;
+ const cTimer * Timer = Timers.GetMatch(e, &TimerMatch);
+ if (Timer && Timer->Recording()) {
+ drawRecIcon = true;
+ }
+ } else {
+ drawRecIcon = e->HasTimer();
+ }
+ if (drawRecIcon) {
widthRecIcon = fontManager->channelEPGSmall->Width(" REC ");
space -= widthRecIcon + indent/2;
}