# HG changeset patch # User Frank Benoit # Date 1208126790 -7200 # Node ID f44bd8465f2f061a0cf65d83491244f9fc250bde # Parent 21cc12d18350c236006b49f005f38b5842ed6b06 Fix Dialog.getButton diff -r 21cc12d18350 -r f44bd8465f2f dwtx/jface/dialogs/Dialog.d --- 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; } /**