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());
|
grand_prix_manager->remove(m_selection->getId());
|
||||||
loadGPList();
|
loadGPList();
|
||||||
|
|
||||||
if (grand_prix_manager->getNumberOfGrandPrix() > 0)
|
if (grand_prix_manager->getNumberOfGrandPrix() > 0)
|
||||||
setSelection (grand_prix_manager->getGrandPrix(0));
|
{
|
||||||
|
setSelection(grand_prix_manager->getGrandPrix(0));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
setSelection(NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ModalDialog::dismiss();
|
ModalDialog::dismiss();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user