summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-14 10:40:12 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-14 10:40:12 +0200
commit360a403f9132ad7296a535bdb4856fd92e9c5b11 (patch)
tree89adc0c3c2ce8cff7716065c673890788c7d10a7
parent2168d734005dde0dc7ce43e17f065fa51a1d2ad7 (diff)
downloadvdr-360a403f9132ad7296a535bdb4856fd92e9c5b11.tar.gz
vdr-360a403f9132ad7296a535bdb4856fd92e9c5b11.tar.bz2
Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey()
-rw-r--r--HISTORY1
-rw-r--r--menuitems.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 5433ac6e..c753b6b1 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4510,3 +4510,4 @@ Video Disk Recorder Revision History
- Removed the unnecessary 'value' member from cMenuEditItem.
- Fixed the initial setting of the time transponder setup parameter (reported
by Thomas Günther).
+- Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey().
diff --git a/menuitems.c b/menuitems.c
index 680ab10f..fe0f917f 100644
--- a/menuitems.c
+++ b/menuitems.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* 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"
@@ -98,7 +98,7 @@ eOSState cMenuEditIntItem::ProcessKey(eKeys Key)
if (*value > max) { *value = max; Set(); }
return state;
}
- if ((!fresh || min <= newValue) && newValue <= max) {
+ if (newValue != *value && (!fresh || min <= newValue) && newValue <= max) {
*value = newValue;
Set();
}