Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java
index f8ad57263d..686e9d9f55 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java
@@ -114,11 +114,14 @@ public class BranchSelectionDialog extends Dialog {
// TODO add support for checkout of tags
confirmationBtn.setEnabled(oneSelected && branchSelected && !headSelected
&& !tagSelected);
- // we don't support rename on tags
- renameButton.setEnabled(oneSelected && branchSelected && !headSelected && !tagSelected);
- // new branch can not be based on a tag
- newButton.setEnabled(oneSelected && branchSelected && !tagSelected);
+ if (!showResetType) {
+ // we don't support rename on tags
+ renameButton.setEnabled(oneSelected && branchSelected && !headSelected && !tagSelected);
+
+ // new branch can not be based on a tag
+ newButton.setEnabled(oneSelected && branchSelected && !tagSelected);
+ }
}
});

Back to the top