Fix crash guiConfirmRegistration quit menu (#7313)
authorVincent Glize <vincentglize@hotmail.fr>
Thu, 10 May 2018 11:50:06 +0000 (13:50 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 10 May 2018 11:50:06 +0000 (13:50 +0200)
src/gui/guiConfirmRegistration.cpp

index 81033eebf777149826ffc396ac05f7348af707a0..92ca94d425c0c3863ce7fc695e24376be7662e9c 100644 (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()