vcs: fix commit dialog disposal

* call `close()` directly, without `getOKAction().isEnabled()` check
* this was broken in 2f19315, because `getOKAction()` no longer returns
  new Action instance on each invocation (that is always enabled)
This commit is contained in:
Aleksey Pivovarov
2016-11-22 13:13:09 +03:00
parent 978dbb0349
commit 5d48690eda
@@ -645,7 +645,7 @@ public class CommitChangeListDialog extends DialogWrapper implements CheckinProj
CheckinHandler.ReturnResult result = runBeforeCommitHandlers(new Runnable() {
@Override
public void run() {
CommitChangeListDialog.super.doOKAction();
close(OK_EXIT_CODE);
doCommit(myResultHandler);
}
}, null);