diff dwtx/jface/dialogs/Dialog.d @ 60:f44bd8465f2f

Fix Dialog.getButton
author Frank Benoit <benoit@tionex.de>
date Mon, 14 Apr 2008 00:46:30 +0200
parents ea8ff534f622
children 46a6e0e6ccd4
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;
     }
 
     /**