changeset 83:028aedd523ad

Fix anon class segfault. Thanks yidabu for the report.
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Jun 2008 13:00:15 +0200
parents 0aafcf6e5217
children 7ab2f0b11096 56fea7e5f0f9
files dwtx/jface/dialogs/ProgressMonitorDialog.d
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dwtx/jface/dialogs/ProgressMonitorDialog.d	Fri Jun 20 12:44:40 2008 +0200
+++ b/dwtx/jface/dialogs/ProgressMonitorDialog.d	Fri Jun 20 13:00:15 2008 +0200
@@ -291,7 +291,7 @@
         progressIndicator.showNormal();
         setMessage(task, true);
         imageLabel.setImage(getImage());
-        
+
     }
 
     /**
@@ -304,7 +304,7 @@
         progressIndicator.showPaused();
         setMessage(reason.getMessage(), true);
         imageLabel.setImage(getImage());
-        
+
     }
 
     /**
@@ -412,9 +412,9 @@
         shell.setCursor(waitCursor);
         // Add a listener to set the message properly when the dialog becomes
         // visible
-        shell.addListener(DWT.Show, new class Listener {
+        shell.addListener(DWT.Show, new class(shell) Listener {
             Shell shell_;
-            this(){ shell_=shell; }
+            this(Shell a){ shell_=a; }
             public void handleEvent(Event event) {
                 // We need to async the message update since the Show precedes
                 // visibility