summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authorAndreas Abraham <aabraham@iaik.tugraz.at>2018-05-04 14:13:56 +0200
committerAndreas Abraham <aabraham@iaik.tugraz.at>2018-05-04 14:13:56 +0200
commitd9ae896ade66d7daaef16b8da0b87173c873d6cf (patch)
tree90eb1c35513be4f5df42f09f7a1067b122e31245 /pdf-over-gui/src/main/java/at
parentfac3aac4c418a9398a6a38980bd1bef216bfc103 (diff)
downloadpdf-over-d9ae896ade66d7daaef16b8da0b87173c873d6cf.tar.gz
pdf-over-d9ae896ade66d7daaef16b8da0b87173c873d6cf.tar.bz2
pdf-over-d9ae896ade66d7daaef16b8da0b87173c873d6cf.zip
bug fix when window is already disposed
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
index d3484889..3c8caf41 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
@@ -142,6 +142,10 @@ public class MainWindow {
*/
public void doLayout() {
Control ctrl = this.stack.topControl;
+ if (this.container.isDisposed()) {
+ //Note: if the conainter is disposed, we are finished here
+ return;
+ }
this.container.layout(true, true);
getShell().layout(true, true);
// Note: SWT only layouts children! No grandchildren!