Fixed a crash in grand prix editor

This commit is contained in:
Deve 2017-09-09 21:25:56 +02:00
parent 4610572649
commit fd00ef4d92

View File

@ -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();
}