summaryrefslogtreecommitdiff
path: root/osdbase.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-10-09 11:00:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-10-09 11:00:50 +0200
commit22ee421be95e973121675849767ea76d9932a757 (patch)
tree6ce1a78f6f70b3739978df683fe52e5f71bb0259 /osdbase.c
parentccaa4e961ea386929a3ba55739f249c621221629 (diff)
downloadvdr-22ee421be95e973121675849767ea76d9932a757.tar.gz
vdr-22ee421be95e973121675849767ea76d9932a757.tar.bz2
Making sure no item is displayed as "current" if Up, Down, Left or Right is pressed in a menu with no selectable items
Diffstat (limited to 'osdbase.c')
-rw-r--r--osdbase.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdbase.c b/osdbase.c
index fca68662..e99c986a 100644
--- a/osdbase.c
+++ b/osdbase.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.c 1.23 2005/10/09 10:42:35 kls Exp $
+ * $Id: osdbase.c 1.24 2005/10/09 10:56:26 kls Exp $
*/
#include "osdbase.h"
@@ -242,8 +242,8 @@ void cOsdMenu::DisplayCurrent(bool Current)
{
cOsdItem *item = Get(current);
if (item) {
- displayMenu->SetItem(item->Text(), current - first, Current, item->Selectable());
- if (Current)
+ displayMenu->SetItem(item->Text(), current - first, Current && item->Selectable(), item->Selectable());
+ if (Current && item->Selectable())
cStatus::MsgOsdCurrentItem(item->Text());
if (!Current)
item->SetFresh(true); // leaving the current item resets 'fresh'