diff options
author | Bernard Leach | 2011-07-03 11:40:22 +0000 |
---|---|---|
committer | Jens Baumgart | 2011-07-05 07:50:02 +0000 |
commit | 58bb71e1f45e5e38cfcd6dd8f288a21c5900e967 (patch) | |
tree | 9468b956278f687121e3cf3d5053c59e1c7205e4 | |
parent | 752a0e0fadcb3e7e2ce9cb04bdb498d8f10917da (diff) | |
download | egit-58bb71e1f45e5e38cfcd6dd8f288a21c5900e967.tar.gz egit-58bb71e1f45e5e38cfcd6dd8f288a21c5900e967.tar.xz egit-58bb71e1f45e5e38cfcd6dd8f288a21c5900e967.zip |
Ignore self generated selection events in StagingView
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.java | 2 |
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 ce447b5720..cbd7100b32 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 |