Fix crash guiConfirmRegistration quit menu (#7313)

master
Vincent Glize 2018-05-10 13:50:06 +02:00 committed by Loïc Blot
parent 50c33d9638
commit a292d19fd0
1 changed files with 1 additions and 1 deletions

View File

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