From 27d0273d8801c7df8e6b403b6c003baa91b1ef5c Mon Sep 17 00:00:00 2001 From: Yourself Date: Tue, 29 Jun 2021 03:49:12 -0400 Subject: [PATCH] Implement issue/request #57 - close Setup window after initiating Connect --- src/Vision.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Vision.cpp b/src/Vision.cpp index 4840b18..ecb5079 100644 --- a/src/Vision.cpp +++ b/src/Vision.cpp @@ -971,6 +971,10 @@ void VisionApp::MessageReceived(BMessage* msg) for (int32 i = 0; (nick = netDefaults.FindString("nick", i)) != NULL; i++) netData.AddString("nick", nick); } + + // If the setup window is open (user is hitting "Connect" from that window presumably), close it. + if (fSetupWin) BMessenger(fSetupWin).SendMessage(B_QUIT_REQUESTED); + if (fClientWin == NULL) { fClientWin = new ClientWindow(clientWinRect); fWinThread = fClientWin->Thread();