1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed clearing non-editable members in the channel editor

This commit is contained in:
Klaus Schmidinger 2014-01-30 09:10:39 +01:00
parent 6a9502ab17
commit 4c304467ba
3 changed files with 8 additions and 2 deletions

View File

@ -1182,6 +1182,7 @@ Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi>
for suggesting to prompt the user for confirmation before overwriting an already for suggesting to prompt the user for confirmation before overwriting an already
existing edited version of a recording existing edited version of a recording
for adding code for parsing LCN and AVC descriptors to libsi for adding code for parsing LCN and AVC descriptors to libsi
for fixing clearing non-editable members in the channel editor
Ralf Klueber <ralf.klueber@vodafone.com> Ralf Klueber <ralf.klueber@vodafone.com>
for reporting a bug in cutting a recording if there is only a single editing mark for reporting a bug in cutting a recording if there is only a single editing mark

View File

@ -8170,7 +8170,7 @@ Video Disk Recorder Revision History
- Fixed a superfluous call to the skin's SetRecording() function after renaming a - Fixed a superfluous call to the skin's SetRecording() function after renaming a
recording (reported by Christoph Haubrich). recording (reported by Christoph Haubrich).
2014-01-29: Version 2.1.5 2014-01-30: Version 2.1.5
- Now checking whether the primary device actually has a decoder before retuning the - Now checking whether the primary device actually has a decoder before retuning the
current channel after a change in its parameters. This fixes broken recordings on current channel after a change in its parameters. This fixes broken recordings on
@ -8181,3 +8181,4 @@ Video Disk Recorder Revision History
Oliver Endriss). Oliver Endriss).
- Fixed sorting recordings by time in the Recordings menu if "Setup/OSD/Recording - Fixed sorting recordings by time in the Recordings menu if "Setup/OSD/Recording
directories" is set to "no". directories" is set to "no".
- Fixed clearing non-editable members in the channel editor (thanks to Rolf Ahrenberg).

6
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 3.17 2014/01/29 10:41:10 kls Exp $ * $Id: menu.c 3.18 2014/01/30 09:04:06 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -181,9 +181,13 @@ cMenuEditChannel::cMenuEditChannel(cChannel *Channel, bool New)
strn0cpy(name, data.name, sizeof(name)); strn0cpy(name, data.name, sizeof(name));
if (New) { if (New) {
channel = NULL; channel = NULL;
// clear non-editable members:
data.nid = 0; data.nid = 0;
data.tid = 0; data.tid = 0;
data.rid = 0; data.rid = 0;
*data.shortName = 0;
*data.provider = 0;
*data.portalName = 0;
} }
} }
Setup(); Setup();