Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2011-06-04 21:52:41 +0000
committerMatthias Sohn2011-06-05 20:28:09 +0000
commit2710a9f237036a1058e1993c321bb2ee75665efb (patch)
tree42cf5ee2454c5fdc597cee1812ade91dc6276445
parentcec7309c12f5b9faa5838fec0b3b0179e4a5c66f (diff)
downloadegit-2710a9f237036a1058e1993c321bb2ee75665efb.tar.gz
egit-2710a9f237036a1058e1993c321bb2ee75665efb.tar.xz
egit-2710a9f237036a1058e1993c321bb2ee75665efb.zip
Staging View: fix switching between repositories
If two different commit message texts were already entered in the staging view for changes in two different repositories, the commit message text in the staging view didn't follow the selection when moving focus from one repository to the other. Change-Id: I4d882ce2d8012e35005b1fce5fc146e391a472e6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-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 dc0ec29fe5..04c66d46c0 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
@@ -839,7 +839,7 @@ public class StagingView extends ViewPart {
}
private void reload(final Repository repository) {
- final boolean repositoryChanged = currentRepository == repository;
+ final boolean repositoryChanged = currentRepository != repository;
final AtomicReference<IndexDiff> results = new AtomicReference<IndexDiff>();

Back to the top