menu: fix return value of getSelectedLine() for RC_timeout and RC_setup

This fixes the bahaviour of StartPosSelectionMenu in moviebrowser.
When this menu was closed by its timeout or RC_setup was pressed
the movie starts anyway.


Origin commit data
------------------
Commit: 70cbc65483
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-07-15 (Sun, 15 Jul 2018)

Origin message was:
------------------
- menu: fix return value of getSelectedLine() for RC_timeout and RC_setup

This fixes the bahaviour of StartPosSelectionMenu in moviebrowser.
When this menu was closed by its timeout or RC_setup was pressed
the movie starts anyway.
This commit is contained in:
vanhofen
2018-07-15 00:41:40 +02:00
parent 0dc672e99a
commit 849d77d3c1
3 changed files with 7 additions and 5 deletions

View File

@@ -588,7 +588,7 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
unsigned int item_start_y;
unsigned int current_page;
unsigned int total_pages;
bool exit_pressed;
bool no_action;
int from_wizard;
bool fade;
bool washidden;
@@ -640,7 +640,7 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
void initSelectable();
int getSelected()const { return selected; };
void move(int xoff, int yoff);
int getSelectedLine(void)const {return exit_pressed ? -1 : selected;};
int getSelectedLine(void)const {return no_action ? -1 : selected;};
void setWizardMode(int _from_wizard) { from_wizard = _from_wizard;};
void enableFade(bool _enable) { fade = _enable; };
void enableSaveScreen(bool enable);