Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2015-09-16 22:06:20 +0000
committerMatthias Sohn2015-09-16 22:41:40 +0000
commit21fb85dbb8f456d2c673d8416fcb24b0a34b0621 (patch)
treee9f7f8524de38d8b5888ef6d3b114dbd99272eac /org.eclipse.egit.ui/src/org/eclipse/egit
parent527d3ae11591e8a6bcd584f5b660f22b6a57c8dd (diff)
downloadegit-21fb85dbb8f456d2c673d8416fcb24b0a34b0621.tar.gz
egit-21fb85dbb8f456d2c673d8416fcb24b0a34b0621.tar.xz
egit-21fb85dbb8f456d2c673d8416fcb24b0a34b0621.zip
Always run preferences listener UI update code in UI thread
Bug: 477634 Change-Id: I5028e0e555a42683caf824e7f0366060a7d8f01d Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java12
1 files changed, 9 insertions, 3 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 aefa6ce8fb..19b33f3811 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
@@ -889,10 +889,16 @@ public class StagingView extends ViewPart implements IShowInSource {
if (isDisposed()) {
getPreferenceStore()
.removePropertyChangeListener(this);
+ return;
}
- updateIgnoreErrorsButtonVisibility();
- updateMessage();
- updateCommitButtons();
+ asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ updateIgnoreErrorsButtonVisibility();
+ updateMessage();
+ updateCommitButtons();
+ }
+ });
}
});

Back to the top