forked from mirror/OpenTTD
(svn r1022) -Fix: [Network] [ 1083690 ] The password dialog made the network
disconnect without cleaning up.
This commit is contained in:
@@ -51,6 +51,7 @@ void HandleOnEditTextCancel() {
|
||||
#ifdef ENABLE_NETWORK
|
||||
case 4:
|
||||
NetworkDisconnect();
|
||||
ShowNetworkGameWindow();
|
||||
break;
|
||||
#endif /* ENABLE_NETWORK */
|
||||
}
|
||||
|
@@ -791,11 +791,11 @@ press_ok:;
|
||||
WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
|
||||
Window *parent;
|
||||
|
||||
DeleteWindow(w);
|
||||
|
||||
// Mask the edit-box as closed, so we don't send out a CANCEL
|
||||
closed = true;
|
||||
|
||||
DeleteWindow(w);
|
||||
|
||||
parent = FindWindowById(wnd_class, wnd_num);
|
||||
if (parent != NULL) {
|
||||
WindowEvent e;
|
||||
|
Reference in New Issue
Block a user