Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2014-10-09 11:52:44 +0000
committerRobin Stocker2014-11-30 08:15:37 +0000
commit781407a1de32e2a311db5dacd5955e47190a913b (patch)
tree72cb864f5a3d58db8f30c453fcce916930f37566
parentc3add24ee76c654a15bb8952989c587dece9a2f4 (diff)
downloadegit-781407a1de32e2a311db5dacd5955e47190a913b.tar.gz
egit-781407a1de32e2a311db5dacd5955e47190a913b.tar.xz
egit-781407a1de32e2a311db5dacd5955e47190a913b.zip
Don't show "Running Launch" dialog again after "Checkout Conflicts"
See bug report for how to reproduce. Bug: 446092 Change-Id: I439bd642341976057305d503a6c769cbb2395f5d Signed-off-by: Robin Stocker <robin@nibor.org>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/branch/BranchOperationUI.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/branch/BranchOperationUI.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/branch/BranchOperationUI.java
index 623b7ba7b1..1f1d030e3a 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/branch/BranchOperationUI.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/branch/BranchOperationUI.java
@@ -93,7 +93,7 @@ public class BranchOperationUI {
* time we do checkout, we don't want to ask any questions we already asked
* the first time, so this will be false then.
*/
- private final boolean showQuestionAboutTarget;
+ private final boolean showQuestionsBeforeCheckout;
private final int mode;
@@ -191,13 +191,13 @@ public class BranchOperationUI {
/**
* @param repository
* @param target
- * @param showQuestionAboutTarget
+ * @param showQuestionsBeforeCheckout
*/
private BranchOperationUI(Repository repository, String target,
- boolean showQuestionAboutTarget) {
+ boolean showQuestionsBeforeCheckout) {
this.repository = repository;
this.target = target;
- this.showQuestionAboutTarget = showQuestionAboutTarget;
+ this.showQuestionsBeforeCheckout = showQuestionsBeforeCheckout;
this.mode = 0;
}
@@ -210,7 +210,7 @@ public class BranchOperationUI {
private BranchOperationUI(Repository repository, int mode) {
this.repository = repository;
this.mode = mode;
- this.showQuestionAboutTarget = true;
+ this.showQuestionsBeforeCheckout = true;
}
/**
@@ -350,7 +350,7 @@ public class BranchOperationUI {
private void askForTargetIfNecessary() {
if (target == null)
target = getTargetWithDialog();
- if (target != null && showQuestionAboutTarget) {
+ if (target != null && showQuestionsBeforeCheckout) {
if (shouldShowCheckoutRemoteTrackingDialog(target))
target = getTargetWithCheckoutRemoteTrackingDialog();
}
@@ -532,6 +532,8 @@ public class BranchOperationUI {
private boolean shouldCancelBecauseOfRunningLaunches() {
if (mode == MODE_CHECKOUT)
return false;
+ if (!showQuestionsBeforeCheckout)
+ return false;
final IPreferenceStore store = Activator.getDefault().getPreferenceStore();
if (!store
.getBoolean(UIPreferences.SHOW_RUNNING_LAUNCH_ON_CHECKOUT_WARNING))

Back to the top