The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999+ on October 12, 2009, 06:34:49 am

Title: [bug r2742] Button on settings window needs 2 clicks when it opened
Post by: z9999+ on October 12, 2009, 06:34:49 am
r2742

When I open settings window and click numbered_stations button, first click didn't work and it worked on second click. But it is not a big problem.

How to reproduce:
1. Open Settings window
2. Click numbered_stations button
3. Click numbered_stations button again

Result:
First click doesn't work but second click.
Title: Re: [bug r2742] Button on settings window needs 2 clicks when it opened
Post by: Dwachs on October 14, 2009, 05:57:27 pm
here is a patch, needs approvement from prissi :)
Title: Re: [bug r2742] Button on settings window needs 2 clicks when it opened
Post by: prissi on October 14, 2009, 07:13:47 pm
Then all of them should do this ... but then, it should not be needed or the tab is slightly strange.
Title: Re: [bug r2742] Button on settings window needs 2 clicks when it opened
Post by: Dwachs on October 14, 2009, 07:35:29 pm
This dirty-variable is reset after each infowin_event, but for the first event (the first click on this numbered-station-button) dirty=true and the click is ignored. Maybe this is due to some gui-komponents that do not send WIN_OPEN etc to its children.
Title: Re: [bug r2742] Button on settings window needs 2 clicks when it opened
Post by: prissi on October 14, 2009, 07:50:08 pm
I know; but somehow on my compiler it does work. Maybe there was an additional NONE event? Anyhow, now initializing everything after init themselves.