Mercurial > projects > dwt-addons
diff dwtx/jface/dialogs/ProgressMonitorDialog.d @ 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 | 46a6e0e6ccd4 |
children | 8d1a6e501ea4 |
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