MessageBox being displayed twice [message #1681128] |
Tue, 17 March 2015 07:23 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
In our client application(s) we have a common core which defines the desktop, the specific applications then use a DesktopExtension. In MyDesktopExtension.desktopOpenedDelegate() we check for user permissions to decide which Outlines they are authorized to use. In the case where the user is not authorized for any outline we want to show him a message to explain why he is seeing an empty main window.
We are doing this using the following line of code:
MessageBox.showOkMessage(TEXTS.get("OC_FE_NO_PERMISSION_TITLE"), TEXTS.get("OC_ST_NO_PERMISSION_HEADER"), TEXTS.get("OC_ST_NO_PERMISSION_INFO"));
However, this leads to the message box being displayed twice, one on top of the other, the top one being modal, so there is no way to interact with the one drawn on the bottom (but if I move the top one, the bottom one is shown fully and it is a complete copy of the top one). If I click the OK button of the top popup, both of them disappear.
If I step through desktopOpenDelegate() using the debugger, only one box is shown. If I place
before the code shown above, I also only see one box.
Is this behaviour expected or have I discovered a bug?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04259 seconds