Skip to content

Commit

Permalink
Implement issue/request HaikuArchives#57 - close Setup window after i…
Browse files Browse the repository at this point in the history
…nitiating Connect
  • Loading branch information
Yourself committed Jun 29, 2021
1 parent ce7bd65 commit 27d0273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Vision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 27d0273

Please sign in to comment.