Mercurial > hg > openttd
changeset 7027:c04e73339bf3 draft
(svn r10291) -Fix [FS#920]: double click in town-GUI didn't work as expected
author | truelight <truelight@openttd.org> |
---|---|
date | Sat, 23 Jun 2007 00:33:15 +0000 |
parents | 83377ac5fe28 |
children | 6d5e82df03c4 |
files | src/town_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -184,9 +184,6 @@ } break; case WE_DOUBLE_CLICK: - e->we.click.widget = 6; - /* Fall through */ - case WE_CLICK: switch (e->we.click.widget) { case 3: { /* listbox */ @@ -200,7 +197,8 @@ WP(w,def_d).data_1 = y; 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 */