Ticket #8589: selectlast.patch

File selectlast.patch, 455 bytes (added by jvprat, 18 years ago)

Select last game when removing the last game of the list

  • gui/launcher.cpp

     
    592592        _list->setList(l);
    593593        if (oldSel < (int)l.size())
    594594                _list->setSelected(oldSel);     // Restore the old selection
     595        else if (oldSel != -1)
     596                // Select the last entry if the list has been reduced
     597                _list->setSelected(_list->getList().size() - 1);
    595598        updateButtons();
    596599}
    597600