mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
CMenuWidget: fix getSelected() member
preselected was not suitable as return value
Origin commit data
------------------
Branch: ni/coolstream
Commit: 930b40588c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-05 (Fri, 05 Dec 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -569,7 +569,7 @@ class CMenuWidget : public CMenuTarget
|
||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
virtual const char *getName();
|
||||
virtual void integratePlugins(CPlugins::i_type_t integration, const unsigned int shortcut=CRCInput::RC_nokey);
|
||||
void setSelected(const int &Preselected){ preselected = Preselected; };
|
||||
void setSelected(const int &Preselected){ selected = Preselected; };
|
||||
int getSelected()const { return selected; };
|
||||
void move(int xoff, int yoff);
|
||||
int getSelectedLine(void)const {return exit_pressed ? -1 : selected;};
|
||||
|
Reference in New Issue
Block a user