summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorBernard Leach2011-07-03 07:40:22 (EDT)
committer Jens Baumgart2011-07-05 03:50:02 (EDT)
commit58bb71e1f45e5e38cfcd6dd8f288a21c5900e967 (patch)
tree9468b956278f687121e3cf3d5053c59e1c7205e4
parent752a0e0fadcb3e7e2ce9cb04bdb498d8f10917da (diff)
downloadegit-58bb71e1f45e5e38cfcd6dd8f288a21c5900e967.zip
egit-58bb71e1f45e5e38cfcd6dd8f288a21c5900e967.tar.gz
egit-58bb71e1f45e5e38cfcd6dd8f288a21c5900e967.tar.bz2
Ignore self generated selection events in StagingViewrefs/changes/14/3814/2
If the source of the selection event is the StagingView itself then there is no need to process the event. Change-Id: Iac8175538b6b7f8a03cbbce70bdf60ebdb57ed38
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java2
1 files changed, 1 insertions, 1 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 ce447b5..cbd7100 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
@@ -380,7 +380,7 @@ public class StagingView extends ViewPart {
selectionChangedListener = new ISelectionListener() {
public void selectionChanged(IWorkbenchPart part,
ISelection selection) {
- if (!reactOnSelection)
+ if (!reactOnSelection || part == getSite().getPart())
return;
// this may happen if we switch between editors