Fix focus bug when multiplayer handling is not needed
This commit is contained in:
parent
543ee92e00
commit
10b6c4b1e1
@ -871,6 +871,8 @@ void DynamicRibbonWidget::scroll(int x_delta, bool evenIfDeactivated)
|
|||||||
{
|
{
|
||||||
for (unsigned int n=0; n<MAX_PLAYER_COUNT; n++)
|
for (unsigned int n=0; n<MAX_PLAYER_COUNT; n++)
|
||||||
{
|
{
|
||||||
|
if (m_selected_item[n] == -1)
|
||||||
|
continue;
|
||||||
RibbonWidget* ribbon = m_rows.get(0); // there is a single row when we can select items
|
RibbonWidget* ribbon = m_rows.get(0); // there is a single row when we can select items
|
||||||
int id = m_selected_item[n] - m_scroll_offset;
|
int id = m_selected_item[n] - m_scroll_offset;
|
||||||
if (id < 0) id += (int) m_items.size();
|
if (id < 0) id += (int) m_items.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user