diff --git a/src/gui/guiConfirmRegistration.cpp b/src/gui/guiConfirmRegistration.cpp index 81033eebf..92ca94d42 100644 --- a/src/gui/guiConfirmRegistration.cpp +++ b/src/gui/guiConfirmRegistration.cpp @@ -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()