Fix crash guiConfirmRegistration quit menu (#7313)

This commit is contained in:
Vincent Glize 2018-05-10 13:50:06 +02:00 committed by Loïc Blot
parent 50c33d9638
commit a292d19fd0

@ -158,13 +158,13 @@ void GUIConfirmRegistration::drawMenu()
void GUIConfirmRegistration::closeMenu(bool goNext)
{
quitMenu();
if (goNext) {
m_client->confirmRegistration();
} else {
*m_aborted = true;
infostream << "Connect aborted [Escape]" << std::endl;
}
quitMenu();
}
void GUIConfirmRegistration::acceptInput()