ui: cleanup - remove duplicated logic

same operations will be performed in `createSouthPanel()`
This commit is contained in:
Aleksey Pivovarov
2016-12-20 13:42:43 +03:00
parent 172394481c
commit 348de83f1d
@@ -1076,19 +1076,7 @@ public abstract class DialogWrapper {
*/
@NotNull
protected Action[] createActions() {
if (getHelpId() == null) {
if (SystemInfo.isMac) {
return new Action[]{getCancelAction(), getOKAction()};
}
return new Action[]{getOKAction(), getCancelAction()};
}
else {
if (SystemInfo.isMac) {
return new Action[]{getHelpAction(), getCancelAction(), getOKAction()};
}
return new Action[]{getOKAction(), getCancelAction(), getHelpAction()};
}
return new Action[]{getOKAction(), getCancelAction(), getHelpAction()};
}
@NotNull