mirror of https://github.com/OpenTTD/OpenTTD
(svn r11648) -Fix [FS#1560]: the company password was not set when one pressed the enter key.
parent
3bba097bb3
commit
0730b9afc1
|
@ -1938,7 +1938,11 @@ static void NetworkCompanyPasswordWindowWndProc(Window *w, WindowEvent *e)
|
||||||
case WE_KEYPRESS:
|
case WE_KEYPRESS:
|
||||||
switch (HandleEditBoxKey(w, &WP(w, chatquerystr_d), 4, e)) {
|
switch (HandleEditBoxKey(w, &WP(w, chatquerystr_d), 4, e)) {
|
||||||
case 1: // Return
|
case 1: // Return
|
||||||
/* FALLTHROUGH */
|
e->event = WE_CLICK;
|
||||||
|
e->we.click.widget = NCPWW_OK;
|
||||||
|
NetworkCompanyPasswordWindowWndProc(w, e);
|
||||||
|
break;
|
||||||
|
|
||||||
case 2: // Escape
|
case 2: // Escape
|
||||||
DeleteWindow(w);
|
DeleteWindow(w);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
#include "vehicle.h"
|
#include "vehicle.h"
|
||||||
#include "newgrf_engine.h"
|
#include "newgrf_engine.h"
|
||||||
#include "spritecache.h"
|
#include "spritecache.h"
|
||||||
#undef WITH_FREETYPE
|
|
||||||
#include "fontcache.h"
|
#include "fontcache.h"
|
||||||
#include "gui.h"
|
#include "gui.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue