aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Duft2011-12-13 05:43:18 -0500
committerMarkus Duft2012-01-04 08:56:43 -0500
commit2dcea75d0fe7cdf82de841ca3ba373db4bf743d5 (patch)
tree21bf7d0a1146cb1302f3fb00664bb5843c5e8f57
parent2377fbf3f272836650a94c47eec2a34e7580435c (diff)
downloadegit-2dcea75d0fe7cdf82de841ca3ba373db4bf743d5.zip
egit-2dcea75d0fe7cdf82de841ca3ba373db4bf743d5.tar.gz
egit-2dcea75d0fe7cdf82de841ca3ba373db4bf743d5.tar.xz
Make staging view check the ChangeId button correctly.
The enables or disables the Gerrit ChangeId button in the staging view according to the settings in the repository, just like with the commit dialog. Change-Id: Ibcdbe79c07cb4a4c230a0d538601d35e335df041
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java
index c7c73f6..ecdcb90 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java
@@ -1293,8 +1293,8 @@ public class StagingView extends ViewPart {
.getPreviousCommit()));
commitMessageComponent.setAmendAllowed(helper.amendAllowed());
commitMessageComponent.setAmending(false);
- commitMessageComponent.setSignedOff(false);
- commitMessageComponent.setCreateChangeId(false);
+ // set the defaults for change id and signed off buttons.
+ commitMessageComponent.setDefaults();
commitMessageComponent.updateUI();
commitMessageComponent.enableListers(true);
}