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
|
#ifdef ENABLE_NETWORK
|
||||||
case 4:
|
case 4:
|
||||||
NetworkDisconnect();
|
NetworkDisconnect();
|
||||||
|
ShowNetworkGameWindow();
|
||||||
break;
|
break;
|
||||||
#endif /* ENABLE_NETWORK */
|
#endif /* ENABLE_NETWORK */
|
||||||
}
|
}
|
||||||
|
@@ -791,11 +791,11 @@ press_ok:;
|
|||||||
WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
|
WindowNumber wnd_num = WP(w,querystr_d).wnd_num;
|
||||||
Window *parent;
|
Window *parent;
|
||||||
|
|
||||||
DeleteWindow(w);
|
|
||||||
|
|
||||||
// Mask the edit-box as closed, so we don't send out a CANCEL
|
// Mask the edit-box as closed, so we don't send out a CANCEL
|
||||||
closed = true;
|
closed = true;
|
||||||
|
|
||||||
|
DeleteWindow(w);
|
||||||
|
|
||||||
parent = FindWindowById(wnd_class, wnd_num);
|
parent = FindWindowById(wnd_class, wnd_num);
|
||||||
if (parent != NULL) {
|
if (parent != NULL) {
|
||||||
WindowEvent e;
|
WindowEvent e;
|
||||||
|
Reference in New Issue
Block a user