Skip to content

Commit

Permalink
[UI][E] Fix ConfigurationWizard's "Next" Button
Browse files Browse the repository at this point in the history
Fixes #1016

Avoids calling setVisible on the createAccountButton
if it is not created during createButtonsForButtonBar.
  • Loading branch information
m273d15 committed May 28, 2020
1 parent 3ed319c commit 95fec41
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ public void widgetSelected(SelectionEvent e) {

@Override
protected void firePageChanging(PageChangingEvent event) {
createAccountButton.setVisible(
(!accountCreated) && event.getTargetPage() instanceof EnterXMPPAccountWizardPage);
if (CreateXMPPAccountWizard.CREATE_DIALOG_ENABLED) {
createAccountButton.setVisible(
(!accountCreated) && event.getTargetPage() instanceof EnterXMPPAccountWizardPage);
}
super.firePageChanging(event);
}

Expand Down

0 comments on commit 95fec41

Please sign in to comment.