Skip to main content
Topic: [bug r2742] Button on settings window needs 2 clicks when it opened (Read 1795 times) previous topic - next topic

[bug r2742] Button on settings window needs 2 clicks when it opened

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.

Re: [bug r2742] Button on settings window needs 2 clicks when it opened

Reply #1
here is a patch, needs approvement from prissi :)
Parsley, sage, rosemary, and maggikraut.

Re: [bug r2742] Button on settings window needs 2 clicks when it opened

Reply #2
Then all of them should do this ... but then, it should not be needed or the tab is slightly strange.

Re: [bug r2742] Button on settings window needs 2 clicks when it opened

Reply #3
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.
Parsley, sage, rosemary, and maggikraut.

 

Re: [bug r2742] Button on settings window needs 2 clicks when it opened

Reply #4
I know; but somehow on my compiler it does work. Maybe there was an additional NONE event? Anyhow, now initializing everything after init themselves.