diff options
author | Matthias Sohn | 2011-06-04 21:52:41 +0000 |
---|---|---|
committer | Matthias Sohn | 2011-06-05 20:28:09 +0000 |
commit | 2710a9f237036a1058e1993c321bb2ee75665efb (patch) | |
tree | 42cf5ee2454c5fdc597cee1812ade91dc6276445 | |
parent | cec7309c12f5b9faa5838fec0b3b0179e4a5c66f (diff) | |
download | egit-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.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 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>(); |