mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CAudioPlayerGui: assign value of variable 'step' with current value
Variable 'step' is reassigned a value before the old one has been used.
This commit is contained in:
@@ -511,10 +511,9 @@ int CAudioPlayerGui::show()
|
||||
{
|
||||
if (m_show_playlist && !m_playlist.empty() )
|
||||
{
|
||||
int step = 0;
|
||||
int prevselected = m_selected;
|
||||
int step = msg == CRCInput::RC_page_up ? m_listmaxshow : 1;
|
||||
|
||||
step = msg == CRCInput::RC_page_up ? m_listmaxshow : 1;
|
||||
m_selected -= step;
|
||||
if ((prevselected-step) < 0)
|
||||
m_selected = m_playlist.size()-1;
|
||||
|
Reference in New Issue
Block a user