diff options
author | Wolfgang Rohdewald <wolfgang@rohdewald.de> | 2008-12-21 17:39:15 +0100 |
---|---|---|
committer | Wolfgang Rohdewald <wolfgang@rohdewald.de> | 2008-12-21 17:39:15 +0100 |
commit | 5f03b3a6324568a87397764a4408084931ab5d16 (patch) | |
tree | d93d2f4150766c9f43cf4af56fed57c564541bcb | |
parent | 65a855ad9fd9d8c71cf0694c54ce570e9326755e (diff) | |
download | vdr-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.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) { |