Do not crash when pressing hidden button on Gp results screen. Fixes #2734
This commit is contained in:
@@ -373,8 +373,10 @@ void RaceResultGUI::eventCallback(GUIEngine::Widget* widget,
|
||||
MessageDialog::MESSAGE_DIALOG_CONFIRM, this, false);
|
||||
}
|
||||
else if (!getWidget(name.c_str())->isVisible())
|
||||
Log::fatal("RaceResultGUI", "Incorrect event '%s' when things are unlocked.",
|
||||
{
|
||||
Log::warn("RaceResultGUI", "Incorrect event '%s' when things are unlocked.",
|
||||
name.c_str());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user