Skip to content

Fix stop command#6

Merged
rlktradewright merged 2 commits intoib-controller:masterfrom
rlktradewright:Fix-STOP-command
Jul 20, 2014
Merged

Fix stop command#6
rlktradewright merged 2 commits intoib-controller:masterfrom
rlktradewright:Fix-STOP-command

Conversation

@rlktradewright
Copy link
Contributor

The STOP command was broken by TWS 944, which changed the structure of the TWS File menu.

This enhancement removes the dependency on knowing the menu structure.

Richard L King added 2 commits July 3, 2014 17:11
This is because TWS 944 appears to have changed the menu structure so that although to the user it looks like there is a File > Exit menu item, in fact there isn't. There IS a File > Close menu item, but programmatically clicking that that doesn't actually do anything. Consequently in TWS 944 the STOP command, and the tidy exit configured by the ClosedownAt setting, don't work.

The new approach is to send a WindowEvent.WINDOW_CLOSING message on the AWT system event queue, which is actually a lot simpler.
This was changed in an earlier commit, but I managed to revert it because of my incompetence with Git!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant