changeset 60:f44bd8465f2f

Fix Dialog.getButton
author Frank Benoit <benoit@tionex.de>
date Mon, 14 Apr 2008 00:46:30 +0200
parents 21cc12d18350
children a5e7bf70c050
files dwtx/jface/dialogs/Dialog.d
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwtx/jface/dialogs/Dialog.d	Sun Apr 13 21:00:22 2008 +0200
+++ b/dwtx/jface/dialogs/Dialog.d	Mon Apr 14 00:46:30 2008 +0200
@@ -824,7 +824,10 @@
      * @since 2.0
      */
     protected Button getButton(int id) {
-        return buttons[id];
+        if( auto btn = id in buttons ){
+            return *btn;
+        }
+        return null;
     }
 
     /**