From 2064dc53c1a55a092630cd000d3da18779e3d53d Mon Sep 17 00:00:00 2001 From: Irina Chernushina Date: Wed, 26 Nov 2008 13:46:35 +0300 Subject: [PATCH] IDEA-20859 (Commit to VCS comment is not remembered if commit is not carried out - when the first message from Message History was selected) --- .../com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java b/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java index 07e582ee4f..8889b35ea9 100644 --- a/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java +++ b/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java @@ -453,8 +453,7 @@ public class CommitChangeListDialog extends DialogWrapper implements CheckinProj private void saveCommentIntoChangeList() { if (myLastSelectedChangeList != null) { final String actualCommentText = myCommitMessageArea.getComment(); - if ((! Comparing.equal(myLastSelectedChangeList.getComment(), actualCommentText)) && - (! Comparing.equal(actualCommentText, VcsConfiguration.getInstance(myProject).LAST_COMMIT_MESSAGE))) { + if (! Comparing.equal(myLastSelectedChangeList.getComment(), actualCommentText)) { myLastSelectedChangeList.setComment(actualCommentText); } } -- 2.11.4.GIT