summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2008-12-21 17:39:15 +0100
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2008-12-21 17:39:15 +0100
commit5f03b3a6324568a87397764a4408084931ab5d16 (patch)
treed93d2f4150766c9f43cf4af56fed57c564541bcb
parent65a855ad9fd9d8c71cf0694c54ce570e9326755e (diff)
downloadvdr-plugin-muggle-5f03b3a6324568a87397764a4408084931ab5d16.tar.gz
vdr-plugin-muggle-5f03b3a6324568a87397764a4408084931ab5d16.tar.bz2
navigating up in tree always went to first position. This worked
before, did vdr core change behaviour?
-rw-r--r--vdr_menu.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/vdr_menu.c b/vdr_menu.c
index 8cfeac5..3df71e7 100644
--- a/vdr_menu.c
+++ b/vdr_menu.c
@@ -409,6 +409,11 @@ mgSelMenu::AddSelectionItems (mgSelection *sel,mgActions act) {
osd()->AddItem(a);
}
}
+// we place the cursor ourself, and we do not want vdr to interfere:
+ osd()->newposition = sel->gotoPosition();
+ cOsdItem *c = osd()->Get(osd()->newposition);
+ mgAction *a = dynamic_cast<mgAction *>(c);
+ a->IgnoreNextEvent = true;
}
string
@@ -787,10 +792,6 @@ mgTreeCollSelector::BuildOsd () {
coll->leave_all();
coll->setPosition(Selosd()->default_collection);
AddSelectionItems (coll,coll_action());
- osd()->newposition = coll->gotoPosition();
- cOsdItem *c = osd()->Get(osd()->newposition);
- mgAction *a = dynamic_cast<mgAction *>(c);
- a->IgnoreNextEvent = true;
}
mgTreeAddToCollSelector::mgTreeAddToCollSelector(string title) {