| Event handler not called (button) [message #809466] |
Tue, 28 February 2012 17:51  |
Karl Weber Messages: 63 Registered: September 2010 |
Member |
|
|
When I start a clean application and create an MPart from an MPartDescriptor and show it, it automatically receives the focus. When I click on a button in the MPart for the first time, the event is fired and the event handler is called. This is the expected behaviour.
When I close this application without deleting the MPart and start it again, the MPart is immediately created from the model state that has been saved before. This time MPart does not immediately receive the focus. This is o.k., since there might be more than one MPart. If I now click on the same button again for the first time, the MPart receives the focus (o.k.), but the event is not fired, i.e. the handler of the button is not called. It is only called, when I click for the second time on the button.
To summarize: The handler of a button is only called, when the corresponding MPart had the focus before the button is clicked. Otherwise one has to click the button twice, to get the handler called once, which is completely unexpected.
Have I missed something, or is this a bug in e4 (Version: 4.2.0 / Build id: I20120209-1230)?
|
|
|