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

Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey()

This commit is contained in:
Klaus Schmidinger 2006-04-14 10:40:12 +02:00
parent 2168d73400
commit 360a403f91
2 changed files with 3 additions and 2 deletions

View File

@ -4510,3 +4510,4 @@ Video Disk Recorder Revision History
- Removed the unnecessary 'value' member from cMenuEditItem. - Removed the unnecessary 'value' member from cMenuEditItem.
- Fixed the initial setting of the time transponder setup parameter (reported - Fixed the initial setting of the time transponder setup parameter (reported
by Thomas Günther). by Thomas Günther).
- Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey().

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: menuitems.c 1.40 2006/04/14 10:23:54 kls Exp $ * $Id: menuitems.c 1.41 2006/04/14 10:39:40 kls Exp $
*/ */
#include "menuitems.h" #include "menuitems.h"
@ -98,7 +98,7 @@ eOSState cMenuEditIntItem::ProcessKey(eKeys Key)
if (*value > max) { *value = max; Set(); } if (*value > max) { *value = max; Set(); }
return state; return state;
} }
if ((!fresh || min <= newValue) && newValue <= max) { if (newValue != *value && (!fresh || min <= newValue) && newValue <= max) {
*value = newValue; *value = newValue;
Set(); Set();
} }