Don't show help button if there is no help available

This commit is contained in:
Konstantin Bulenkov
2017-03-23 10:17:16 -07:00
parent 01d1840b32
commit 9dbc09708d
@@ -1080,7 +1080,11 @@ public abstract class DialogWrapper {
*/
@NotNull
protected Action[] createActions() {
return new Action[]{getOKAction(), getCancelAction(), getHelpAction()};
Action helpAction = getHelpAction();
return helpAction == myHelpAction && getHelpId() == null
? new Action[]{getOKAction(), getCancelAction()}
: new Action[]{getOKAction(), getCancelAction(), helpAction};
}
@NotNull