Mercurial > projects > dwt-linux
diff dwt/custom/TreeEditor.d @ 237:98b80b00af79
Fix problem with dmd 1.029
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 26 Apr 2008 10:01:30 +0200 |
parents | 17f8449522fd |
children | c0d810de7093 |
line wrap: on
line diff
--- a/dwt/custom/TreeEditor.d Sun Apr 20 00:19:27 2008 +0200 +++ b/dwt/custom/TreeEditor.d Sat Apr 26 10:01:30 2008 +0200 @@ -118,21 +118,21 @@ this(){ runnable = new class() Runnable { public void run() { - if (editor is null || editor.isDisposed()) return; + if (this.outer.outer.editor is null || this.outer.outer.editor.isDisposed()) return; if (this.outer.outer.tree.isDisposed()) return; layout(); - editor.setVisible(true); + this.outer.outer.editor.setVisible(true); } }; } public void treeCollapsed(TreeEvent e) { - if (editor is null || editor.isDisposed ()) return; - editor.setVisible(false); + if (this.outer.editor is null || this.outer.editor.isDisposed ()) return; + this.outer.editor.setVisible(false); e.display.asyncExec(runnable); } public void treeExpanded(TreeEvent e) { - if (editor is null || editor.isDisposed ()) return; - editor.setVisible(false); + if (this.outer.editor is null || this.outer.editor.isDisposed ()) return; + this.outer.editor.setVisible(false); e.display.asyncExec(runnable); } };