*neutrino menu: make setSelected()also usable if widget index is in use

setSelected() had no effect with widget index

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2099 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2012-02-15 18:21:38 +00:00
parent d31b1fe29d
commit 0a4f444503

View File

@@ -456,8 +456,8 @@ class CMenuWidget : public CMenuTarget
virtual void hide(); virtual void hide();
virtual int exec(CMenuTarget* parent, const std::string & actionKey); virtual int exec(CMenuTarget* parent, const std::string & actionKey);
virtual std::string getName(); virtual std::string getName();
virtual void setSelected(const int &Preselected){ preselected = Preselected; }; void setSelected(const int &Preselected){ preselected = Preselected; };
virtual int getSelected(){ return selected; }; int getSelected(){ return selected; };
void move(int xoff, int yoff); void move(int xoff, int yoff);
int getSelectedLine(void){return exit_pressed ? -1 : selected;}; int getSelectedLine(void){return exit_pressed ? -1 : selected;};
void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;}; void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;};