mirror of https://github.com/OpenTTD/OpenTTD
(svn r10291) -Fix [FS#920]: double click in town-GUI didn't work as expected
parent
27a6e21975
commit
2d591ec1af
|
@ -184,9 +184,6 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case WE_DOUBLE_CLICK:
|
case WE_DOUBLE_CLICK:
|
||||||
e->we.click.widget = 6;
|
|
||||||
/* Fall through */
|
|
||||||
|
|
||||||
case WE_CLICK:
|
case WE_CLICK:
|
||||||
switch (e->we.click.widget) {
|
switch (e->we.click.widget) {
|
||||||
case 3: { /* listbox */
|
case 3: { /* listbox */
|
||||||
|
@ -200,7 +197,8 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
|
||||||
WP(w,def_d).data_1 = y;
|
WP(w,def_d).data_1 = y;
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
}
|
}
|
||||||
break;
|
/* Fall through to clicking in case we are double-clicked */
|
||||||
|
if (e->event != WE_DOUBLE_CLICK || y < 0) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 6: { /* carry out the action */
|
case 6: { /* carry out the action */
|
||||||
|
|
Loading…
Reference in New Issue