Fixed a crash in grand prix editor
This commit is contained in:
parent
4610572649
commit
fd00ef4d92
@ -315,8 +315,15 @@ void GrandPrixEditorScreen::onConfirm()
|
||||
{
|
||||
grand_prix_manager->remove(m_selection->getId());
|
||||
loadGPList();
|
||||
|
||||
if (grand_prix_manager->getNumberOfGrandPrix() > 0)
|
||||
setSelection (grand_prix_manager->getGrandPrix(0));
|
||||
{
|
||||
setSelection(grand_prix_manager->getGrandPrix(0));
|
||||
}
|
||||
else
|
||||
{
|
||||
setSelection(NULL);
|
||||
}
|
||||
}
|
||||
ModalDialog::dismiss();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user