Skip to content
Snippets Groups Projects
Commit bc74fa85 authored by felmer's avatar felmer
Browse files

BIS-186 Disable button before validation and confirmed action is executed.

SVN: 26667
parent 8f45e5c7
No related branches found
No related tags found
No related merge requests found
......@@ -109,14 +109,18 @@ public abstract class AbstractDataConfirmationDialog<T> extends Dialog
}
@Override
protected final void onButtonPressed(Button button)
protected final void onButtonPressed(final Button button)
{
if (button.getItemId().equals(Dialog.OK))
{
button.disable();
if (validate())
{
executeConfirmedAction();
super.onButtonPressed(button);
} else
{
button.enable();
}
} else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment