summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-07 17:13:27 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-07 17:13:27 +0100
commitf3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f (patch)
tree8015679bd14306972ee9182388d4e0a4b5440d5b
parent00608b98f845630ce45c6102188df992a381d14a (diff)
downloadpdf-over-f3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f.tar.gz
pdf-over-f3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f.tar.bz2
pdf-over-f3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f.zip
check for config composite disposal in update check callback
cf. #132
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java
index 09c2fdbc..14f7a015 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java
@@ -57,7 +57,7 @@ public class AboutComposite extends ConfigurationCompositeBase {
this.lnkUpdateCheckStatus = new Link(this, SWT.NONE);
SWTUtils.anchor(lnkUpdateCheckStatus).bottom(100, -5).left(0,5);
SWTUtils.setFontHeight(lnkUpdateCheckStatus, Constants.TEXT_SIZE_BUTTON);
- UpdateCheckManager.registerStatusCallback((s) -> { latestUpdateStatus = s; getDisplay().asyncExec(() -> { RefreshUpdateStatusText(); }); });
+ UpdateCheckManager.registerStatusCallback((s) -> { if (isDisposed()) return; latestUpdateStatus = s; getDisplay().asyncExec(() -> { RefreshUpdateStatusText(); }); });
SWTUtils.addSelectionListener(lnkUpdateCheckStatus, (e) -> {
if (latestUpdateStatus == UpdateCheckManager.Status.OUTDATED)
Program.launch(Constants.UPDATE_URL);