Fix crash guiConfirmRegistration quit menu (#7313)
parent
50c33d9638
commit
a292d19fd0
|
@ -158,13 +158,13 @@ void GUIConfirmRegistration::drawMenu()
|
||||||
|
|
||||||
void GUIConfirmRegistration::closeMenu(bool goNext)
|
void GUIConfirmRegistration::closeMenu(bool goNext)
|
||||||
{
|
{
|
||||||
quitMenu();
|
|
||||||
if (goNext) {
|
if (goNext) {
|
||||||
m_client->confirmRegistration();
|
m_client->confirmRegistration();
|
||||||
} else {
|
} else {
|
||||||
*m_aborted = true;
|
*m_aborted = true;
|
||||||
infostream << "Connect aborted [Escape]" << std::endl;
|
infostream << "Connect aborted [Escape]" << std::endl;
|
||||||
}
|
}
|
||||||
|
quitMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUIConfirmRegistration::acceptInput()
|
void GUIConfirmRegistration::acceptInput()
|
||||||
|
|
Loading…
Reference in New Issue